Repository navigation
chore: disable CGO in Makefile - #985
Conversation
|
Important Cloud Posse Engineering Team Review RequiredThis pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes. To expedite this process, reach out to us on Slack in the |
|
Maybe we should replace $ mkdir build
$ GOOS=linux goreleaser build --single-target --skip before,post-hooks,pre-hooks,validate --clean -o build/atmos
• only configurations files on version: 2 are supported, yours is version: 0 , please update your configuration
• skipping before, post-hooks, pre-hooks and validate...
• cleaning distribution directory
• loading environment variables
• getting and validating git state
• git state commit=4d35c0a973d929b15040f419aa728bffe4520826 branch=chore-disable-cgo current_tag=v1.156.0 previous_tag=v1.155.0 dirty=true
• pipe skipped reason=validation is disabled
• parsing tag
• setting defaults
• DEPRECATED: archives.format should not be used anymore, check https://goreleaser.com/deprecations#archivesformat for more info
• partial
• ensuring distribution directory
• setting up metadata
• writing release metadata
• loading go mod information
• build prerequisites
• building binaries
• partial build match=target=linux_arm64_v8.0
• building binary=dist/atmos_linux_arm64_v8.0/atmos
• writing artifacts metadata
• copying binary to "build/atmos"
• you are using deprecated options, check the output above for details
• build succeeded after 3s
• thanks for using GoReleaser!
$ ls build/atmos
build/atmos |
📝 WalkthroughWalkthroughThe Makefile has undergone targeted modifications affecting build configuration. A key change involves explicitly setting Changes
The changes are straightforward yet impactful, representing a lean approach to build configuration management. The removal of the dynamic build harness and explicit CGo disabling indicate a move towards more predictable and controlled compilation processes. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
We have a ton of these types of improvements in our backlog. I'll make a new one for this. I really appreciate the suggestions. Keep 'em coming! |
|
These changes were released in v1.157.0. |
what
Disable CGO in Makefile.
why
By default CGO is enabled.
In .goreleaser.yml, CGO is disabled.
atmos/.goreleaser.yml
Lines 8 to 11 in 255a05a
Enabling CGO causes problemds like that. #926 (comment)
references
Summary by CodeRabbit