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
gitlab-runner: new submission #3081
Conversation
Travis Build #4402 Passed. Lint results
Port gitlab-runner success on xcode9.4. Log |
This would seem to just install a binary? What's the source written in? |
Yes, this installs a binary. I believe it’s written in Go, but I’m not familiar with that: https://gitlab.com/gitlab-org/gitlab-runner |
We usually have a very strong preference not to just install binaries except for some Java code where it's hard to do otherwise. Perhaps it would be possible to build this instead? We have a substantial Go build support infrastructure now. |
I'm sure it's possible, but I don't have the time right now to redo this port as a build from source. I personally don't care about building from source, because of the build time and the extra dependencies that need to be installed to build from source. |
You might not care, but MacPorts generally does care, both for reasons of provenance and to assure compatibility with older versions of MacOS. You might ask on the developers list for assistance so you don't have to figure the whole thing out alone. |
Looks like documentation on what's needed is here: |
Travis Build #4530 Passed. Lint results
Port gitlab-runner success on xcode9.4. Log |
Travis Build #4531 Passed. Lint results
Port gitlab-runner success on xcode9.4. Log |
I'll repeat that this really should be building the binary locally; we have a very strong preference for that, and we have all the tools needed in the go portgroup. |
@pmetzger That's fine, but I don't know how. I asked on the macports-dev mailinglist and somebody gave it a go, but also didn't get it to work, so currently either this gets merged and MacPorts has gitlab-runner or this doesn't get merged and MacPorts doesn't have gitlab-runner. Or we wait some more until someone does create a working Portfile that builds from source. |
@amake can you be of some help here? |
Done. You will probably want to squash my second commit into @breun's first commit. Note that upstream wants to put a bunch of build metadata into the binary: version, git revision, git branch, and build date/time. I've turned all of these (except version) into the string "unknown" but if you want to do them right:
|
I think build dates and times being burned into binaries is a bad idea, so no on that. @breun so does this help? |
@amake Thanks a lot for looking into this! I just successfully built
I think leaving the 'unknown' entries is fine. @pmetzger This definitely helps and I think I could be the maintainer from this point on, so I'd be fine with merging. |
Description
New port for GitLab Runner.
Tested on
macOS 10.14.1 18B75
Xcode 10.1 10B61
Verification
Have you
port lint
?sudo port -vst install
?