lib/licensed/source/dep.rb in licensed-1.1.0 vs lib/licensed/source/dep.rb in licensed-1.2.0

- old
+ new

@@ -58,22 +58,14 @@ def go_std_package?(import_path) go_std_packages.include? "vendor/#{import_path.sub(/^golang.org/, "golang_org")}" end def go_dep_available? - return false unless gopkg_lock_path.exist? && gopkg_toml_path.exist? - return true if @config.dig("dep", "allow_ignored") == true - - gopkg_toml = Tomlrb.load_file(gopkg_toml_path, symbolize_keys: true) - gopkg_toml[:ignored].nil? || gopkg_toml[:ignored].empty? + gopkg_lock_path.exist? end def gopkg_lock_path @config.pwd.join("Gopkg.lock") - end - - def gopkg_toml_path - @config.pwd.join("Gopkg.toml") end # Returns a list of go standard packages def go_std_packages @std_packages ||= begin