mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
0a536f08fd
<!-- Hi, thanks for contributing! Please make sure you read our CONTRIBUTING guide. Also, add tests and the respective documentation changes as well. --> <!-- If applied, this commit will... --> This PR improves the handling of shared or static libraries by GoReleaser. It uses the default behaviour of the Go compiler by appending the right extension to libraries. * `.so` and `.a` for Linux shared libraries and static libraries respectively * `.dylib` and `.a.` on Darwin * `.dll` and `.lib` on Windows (pre-existent) It does not add any configuration option to `.goreleaser.yml`, since it leverages the existing `buildmode` flag. Additionally, this PR takes care of adding the generated header file into the archive. <!-- Why is this change being made? --> Personally I would leverage this change to release some software both as a CLI and as a shared library. I believe others who use CGo or need interoperability with Go from other languages could benefit from this. <!-- # Provide links to any relevant tickets, URLs or other resources --> This was previously discussed in #3497. I couldn't quite think of a proper way to add some tests to the header archiving feature. Any recommendation? |
||
---|---|---|
.. | ||
announce | ||
archive.md | ||
artifactory.md | ||
aur.md | ||
blob.md | ||
build.md | ||
changelog.md | ||
checksum.md | ||
dist.md | ||
docker_manifest.md | ||
docker_sign.md | ||
docker.md | ||
env.md | ||
fury.md | ||
homebrew.md | ||
hooks.md | ||
includes.md | ||
index.md | ||
krew.md | ||
milestone.md | ||
monorepo.md | ||
nfpm.md | ||
nightlies.md | ||
partial.md | ||
project.md | ||
publishers.md | ||
release.md | ||
sbom.md | ||
scoop.md | ||
sign.md | ||
snapcraft.md | ||
snapshots.md | ||
source.md | ||
templates.md | ||
universalbinaries.md | ||
upload.md | ||
verifiable_builds.md |