Skip to content

Commit

Permalink
Mark all dependencies that aren't from the first gem source
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewd committed Feb 9, 2021
1 parent ed4fdb2 commit 53d4bb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gel/resolved_gem_set.rb
Expand Up @@ -187,7 +187,7 @@ def dump
end

lock_content << "DEPENDENCIES"
non_bang_deps = server_gems&.map(&:name) || []
non_bang_deps = server_gems&.select { |rg| rg.catalog == server_catalogs.first }&.map(&:name) || []
dependencies.each do |dependency|
dependency_name = dependency.split(" ").first
bang = "!" unless non_bang_deps.include?(dependency_name)
Expand Down
2 changes: 1 addition & 1 deletion test/resolve_test.rb
Expand Up @@ -704,7 +704,7 @@ def test_conflicting_version_constraints
DEPENDENCIES
dotenv
foreman
thunk
thunk!
LOCKFILE
end

Expand Down

0 comments on commit 53d4bb9

Please sign in to comment.