lib/licensed/sources/dep.rb in licensed-2.6.0 vs lib/licensed/sources/dep.rb in licensed-2.6.1
- old
+ new
@@ -8,12 +8,12 @@
go_dep_available?
end
def enumerate_dependencies
packages.map do |package|
- package_dir = @config.pwd.join("vendor", package[:name])
- search_root = @config.pwd.join("vendor", package[:project])
+ package_dir = config.pwd.join("vendor", package[:name])
+ search_root = config.pwd.join("vendor", package[:project])
Dependency.new(
name: package[:name],
version: package[:version],
path: package_dir.to_s,
@@ -50,10 +50,10 @@
def go_dep_available?
gopkg_lock_path.exist?
end
def gopkg_lock_path
- @config.pwd.join("Gopkg.lock")
+ config.pwd.join("Gopkg.lock")
end
# Returns a list of go standard packages
def go_std_packages
@std_packages ||= begin