Closed larseggert closed 1 year ago
Wow, that's a real head-scratcher. There are a couple of things I can try out for you.
The first I've done already, which is to use a subshell for the git command rather than asking make to do the work (this is a good idea anyway as it avoids make running this command when it shouldn't).
The second is that maybe I need to mark the directory as safe. I'll do that in the image. (Edit: that was done a long time ago.)
FWIW, I ran the commands that GitHub ran on my own machine. (The debug output really helped there.) It did not fail when I did that. Hoping that the change I made helps.
That didn't fix it.
I tried some things, and I think the problem is that the upload
target tries to run git tag
on the XML, which is not part of the repo and so has no tags. A second issue seems to be that the use of basename
doesn't actually do anything, but that I can work around by changing that line to:
set -ex; base=$$(basename $<); email="$$(git tag --list --format '%(taggeremail)' $$base | \
This still fails, because $<
is versioned/draft-ietf-tcpm-rfc8312bis-09.xml
.
This is running the make
version of $(basename x)
, which is defined as removing the extension:
Note the single \$ here. Doubling it, as you have, sends the command to the shell.
The shell version, /usr/bin/basename
, is defined as removing the directory part, only removing an extension if specified in the form basename dir/foo.xml .xml
= foo
.
Of course, now I have to dig out my mac, because anything I say about make is likely to be proven false by the ancient version that XCode ships.
GNU Make 4.2.1 on macOS 11.6.5 (Big Sur) produces "dir/foo" from $(basename dir/foo.xml)
, which seems OK.
Thanks for the explanation. But isn't the issue still that
git tag --list --format '%(taggeremail)' versioned/draft-ietf-tcpm-rfc8312bis-09
tries to run git
on versioned/draft-ietf-tcpm-rfc8312bis-09
, which is not part of the repo?
🤦 I'm an idiot. I'll fix that.
a02d511 fixes this.
Works!
See https://github.com/NTAP/rfc8312bis/runs/8091216231?check_suite_focus=true#step:8:38.
For some reason, getting my email from
git tag
seems to fail.What's worse, doing
make upload
locally has the same issue:This is odd, because: