Merged
Conversation
Member
|
I think the issue is that we can't build a cross-compiling package that will work in our docker image without uploading and using the SDK as we're currently using it. |
493ba15 to
4d5646e
Compare
SuperQ
reviewed
Jan 18, 2024
Member
SuperQ
left a comment
There was a problem hiding this comment.
Nice, looks good. Just need to also update 1.20.
Signed-off-by: Alper Polat <[email protected]> Revert back to using secret URL Signed-off-by: Alper Polat <[email protected]> Add && back Signed-off-by: Alper Polat <[email protected]> Remove useless copy Signed-off-by: Alper Polat <[email protected]> Put JOBS back to 2 Signed-off-by: Alper Polat <[email protected]> Update 1.20 as well Signed-off-by: Alper Polat <[email protected]>
Contributor
Author
|
Updated 1.20 too and squashed. |
SuperQ
approved these changes
Jan 18, 2024
Member
|
I tested this manually on my system and it seems to build and run fine. I don't have an arm64 mac to test with. |
Contributor
Author
|
I could not make it work on my arm64 mac: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@SuperQ previously stated that we need to update the xcode stuff in
golang-builderimage:prometheus/node_exporter#2539 (comment)
So, I've attempted to do that. More below:
What I've done
14PROM_OSX_SDK_URLsecret, I used my local copy of macOS SDK (Not committed to repo) >> This will fail the CircleCI pipelineJOBSto4to make compilation fastergolang-builderimage with updated macOS SDK, didn't change tagging (resulting tag wasquay.io/prometheus/golang-builder:1.21.5-main-master) (Not yet committed to quay.io!)Questions
Notes
Xcode license agreement says
and
My interpretation is that we are able to develop, and distribute using macOS SDK.
But, the catch was right at the start:
In this case, I feel like we should stay in the safe side and build it on macOS machine, as CircleCI already offers those.
To do (My plan)
PROM_OSX_SDK_URL, or change the way SDK is injected into the docker imageJOBSback to what it was, and putPROM_OSX_SDK_URLstuff back to what it was if we won't change the injection method)Feel free to add more comments and info as you see fit.
Thanks!