Actions
Bug #16167
closedmake-snapshot does not work from fresh checkout
Description
So far, I was using this sequence to get Ruby snapshot:
git clone https://github.com/ruby/ruby ~/ruby
cd ~/ruby && tool/make-snapshot -packages=xz -git=https://github.com/ruby/ruby tmp
But that does not work anymore. It seems I am not supposed to use the -git option anymore. So lets drop it:
$ tool/make-snapshot -packages=xz ./tmp
Exporting @98f919ed47a136c9a51c7ab5fa39ffb4965a1687
Cloning into '/tmp/ruby-snapshot20190913-95-1lk1fkq/ruby'...
done.
fatal: couldn't find remote ref refs/notes/commits
fatal: the remote end hung up unexpectedly
Traceback (most recent call last):
6: from tool/make-snapshot:578:in `<main>'
5: from tool/make-snapshot:578:in `collect'
4: from tool/make-snapshot:578:in `block in <main>'
3: from tool/make-snapshot:285:in `package'
2: from /builddir/ruby/tool/lib/vcs.rb:587:in `export'
1: from /builddir/ruby/tool/lib/vcs.rb:115:in `system'
/builddir/ruby/tool/lib/vcs.rb:115:in `system': Command failed with exit 128: git (RuntimeError)
So something is broken.
When I added -exported=.
option, finally I've got something:
$ tool/make-snapshot -packages=xz -exported=. tmp
Traceback (most recent call last):
6: from tool/make-snapshot:578:in `<main>'
5: from tool/make-snapshot:578:in `collect'
4: from tool/make-snapshot:578:in `block in <main>'
3: from tool/make-snapshot:360:in `package'
2: from tool/make-snapshot:360:in `chdir'
1: from tool/make-snapshot:362:in `block in package'
/builddir/ruby/tool/lib/vcs.rb:614:in `export_changelog': need notes/commits tree; run `git fetch origin refs/notes/commits:refs/notes/commits` in the repository (RuntimeError)
Running this command, it helped, but that appears to be less than ideal UX.
Actions
Like0
Like0Like0Like0Like0Like0