Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centralize more Nuget calls #8849

Merged
merged 9 commits into from
Jan 22, 2024
Merged

Centralize more Nuget calls #8849

merged 9 commits into from
Jan 22, 2024

Conversation

ryanbrandenburg
Copy link
Contributor

Trying to split up my earlier PR into more manageable chunks, easy parts first.

@ryanbrandenburg ryanbrandenburg requested review from a team as code owners January 19, 2024 19:20
@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Jan 19, 2024
Copy link
Contributor

@JoeRobich JoeRobich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this consolidation.

Comment on lines +31 to +41
debug
gpgme
rake
rspec-its
rspec-sorbet
rubocop
rubocop-performance
rubocop-sorbet
stackprof
turbo_tests
vcr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not quite clear to me why these changes are needed, I would expect these to already be pulled in via the gemspec?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are unfortunately not. Running bundle exec turbo_tests in any directory currently gives

bundler: failed to load command: turbo_tests (/home/jamie/.asdf/installs/ruby/3.1.4/bin/turbo_tests)
/home/jamie/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.5.3/lib/bundler/rubygems_integration.rb:265:in `block in replace_bin_path': can't find executable turbo_tests for gem turbo_tests. turbo_tests is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)

I think it might actually be easier to get rid of deps_shared_with_common and just load the same development dependencies below

Dir.chdir(File.dirname(common_gemspec)) do
  Gem::Specification.load(common_gemspec).development_dependencies.each do |dep|
-     next unless deps_shared_with_common.include?(dep.name)
-
    gem dep.name, *dep.requirement.as_list
  end
end

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I believe this is a bug in Bundler. If that's the case, upgrading to 2.5.5 should fix it!

@abdulapopoola abdulapopoola merged commit de60a9d into main Jan 22, 2024
65 checks passed
@abdulapopoola abdulapopoola deleted the dev/rybrande/NugetJsonParse branch January 22, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants