diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-12-24 20:42:50 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-12-25 05:55:36 +0900 |
commit | 8f05e4f54bdb3bcf05574bd5f12e56f7e010c8a2 (patch) | |
tree | f84580ebe619c61036604163ca17aa33a141fda2 /spec/bundler/lock | |
parent | 3cbe37bd357464c0ce665770998b691cad022a24 (diff) | |
download | ruby-8f05e4f54bdb3bcf05574bd5f12e56f7e010c8a2.tar.gz |
Update Bundler to 2.4.1 & and RubyGems to 3.4.1
Diffstat (limited to 'spec/bundler/lock')
-rw-r--r-- | spec/bundler/lock/git_spec.rb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/spec/bundler/lock/git_spec.rb b/spec/bundler/lock/git_spec.rb index dfcbb645b1..a633bd546e 100644 --- a/spec/bundler/lock/git_spec.rb +++ b/spec/bundler/lock/git_spec.rb @@ -90,6 +90,42 @@ RSpec.describe "bundle lock with git gems" do expect(err).to be_empty end + it "properly fetches a git source locked to an annotated tag" do + # Create an annotated tag + git("tag -a v1.0 -m 'Annotated v1.0'", lib_path("foo-1.0")) + annotated_tag = git("rev-parse v1.0", lib_path("foo-1.0")) + + gemfile <<-G + source "#{file_uri_for(gem_repo1)}" + gem 'foo', :git => "#{lib_path("foo-1.0")}" + G + + lockfile <<-L + GIT + remote: #{lib_path("foo-1.0")} + revision: #{annotated_tag} + specs: + foo (1.0) + + GEM + remote: #{file_uri_for(gem_repo1)}/ + specs: + + PLATFORMS + #{lockfile_platforms} + + DEPENDENCIES + foo! + + BUNDLED WITH + #{Bundler::VERSION} + L + + bundle "install" + + expect(err).to be_empty + end + it "provides correct #full_gem_path" do run <<-RUBY puts Bundler.rubygems.find_name('foo').first.full_gem_path |