-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
go: various #7924
go: various #7924
Conversation
Language::Go.stage_deps resources, gopath/"src" | ||
|
||
# Fix for Go 1.7+ syntax strictness. Upstream is dead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream is dead.
💀?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. Typically for simple syntax errors like this we've fixed it and reported it upstream even where upstream hasn't committed in upwards of 6 months, but upstream has hard deprecated the repo, there's almost nothing in it now, you have to go back to the old tag to find the contents.
I'm open to the simple fix or death either way, but there don't seem to be any issues beyond the lack of =
in the prior tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
41 installs in the last month, 722 since July, so I guess we can keep it ...
Thanks for the 🎁 I guess we'll leave the terraform mess to upstream? |
# deciding whether to add a = or not on the ldflags, as mandated | ||
# by Go 1.7+. | ||
# https://github.com/rackspace/rack/issues/446 | ||
inreplace "script/build", "go1.5", "go#{Formula["go"].version}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will break for HEAD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ugh, yeah, good catch. I guess Utils.popen_read
on the go
executable itself is an alternative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may be able to get away with Formula["go"].stable.version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aye, I was just trying to not bork it for devel
. version
is nice because it works whatever you have installed. The upstream build script doesn't seem to have contemplated that there would be a Go beyond 1.5; it does a simple grep to see if we need the =
or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utils.popen_read sounds 🆒
@@ -18,87 +18,18 @@ class Serf < Formula | |||
end | |||
|
|||
depends_on "go" => :build | |||
depends_on "govendor" => :build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the deps end up exactly the same with govendor+gox as compared to the current formula in master? If not, may want to revision bump.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll double check, but given how (not so) often people update resources hardcoded into formulae I suspect it's not in sync.
cd gopath/"src/github.com/hashicorp/serf" do | ||
# We've already handled downloading/building these | ||
# and don't need to repeat the step. | ||
inreplace "GNUmakefile", "bin:: tools", "bin::" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worth reporting as a feature request? (presumably it could check if gox
is already in the PATH)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll double check if this is needed actually. I put this in first, and then messed with the gox
stuff a bit more, it might be redundant now. Upstream do have some sane logic around finding gox
on system first.
Was updated yesterday, so I presumed if it passed CI as the new version it was 💯 now. Will double check but fingers crossed. |
Oh, that's fun 😭. |
Pushed some changes. Should be alright now, more or less. |
Thanks Dom. I love my 🎁 :) 🚀 |
I made it just for you 😺. Having a real pain reproducing the |
Odd, I'm still able to reproduce the original issue on demand (which is distinct from the Sierra failure https://bot.brew.sh/job/Homebrew%20Core/13240/version=sierra/console):
|
Apparently it's a race
does wonders. 🙈 |
I er, ran it again through twice more with no problems. And then ran it a third more time, and encountered this 😅:
But then I did a forth build and that worked fine again:
Who even knows. |
That smells like a parallelization issue to me, but I think it's equally likely this formula is just cursed by demonic spirits. |
Aye, someone's cursed the |
It's got nothin' on the android-sdk formula, though: #7860. |
Oh, those formulae were periodically joyful. Upstream binaries don't always play so well with Homebrew sigh. The |
Sounds like white space PTSD to me. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?Present for @ilovezfs.
Closes #7631.