Skip to content
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

Switch back to dynamically-linked executable for Linux #502

Merged
merged 1 commit into from
Nov 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ before_deploy:
# We first build the dynamic version
docker run --mount src="$(pwd)",target=/home/ubuntu/spago,type=bind "nilrecurring/haskell-lavello:${IMAGE_TAG}" /bin/bash -c "cd spago; stack build --copy-bins --local-bin-path ./artifacts"
cp artifacts/spago spago
tar -zcvf "${TRAVIS_OS_NAME}-dynamic.tar.gz" spago
tar -zcvf "${TRAVIS_OS_NAME}.tar.gz" spago
# Then the static one
docker run --mount src="$(pwd)",target=/home/ubuntu/spago,type=bind "nilrecurring/haskell-lavello:${IMAGE_TAG}" /bin/bash -c "cd spago; stack build --copy-bins --flag spago:static --local-bin-path ./artifacts"
sed -e "s/NPM_VERSION/$(./scripts/get-npm-version)/g" -i npm/package.json ;
sed -e "s/PACKAGE_VERSION/$(./scripts/get-version)/g" -i npm/install.js ;
fi
cp artifacts/spago spago
tar -zcvf "${TRAVIS_OS_NAME}.tar.gz" spago
tar -zcvf "${TRAVIS_OS_NAME}-static.tar.gz" spago
for f in *.tar.gz; do mv "$f" uploads/; done

## Get ready to publish npm
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.12.0] - 2019-11-15

Breaking changes (😱!!!):
- **Revert back to dynamically linked binary on Linux (#502, #500, #497)**

The static binary was still dynamically linking to `glibc`, causing it to be broken on
some distros. So for now we're back on a dynamically-linked executable.

## [0.11.1] - 2019-11-12

This is identical to `0.11.0`, but published under a new version number due to mishaps in the publishing CI process.
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: spago
version: 0.11.1.0
version: 0.12.0.0
github: "spacchetti/spago"
license: BSD3
author: "Justin Woo, Fabrizio Ferrai"
Expand Down