Skip to content

Commit

Permalink
Switch back to dynamically-linked executable for Linux (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-f authored and mergify[bot] committed Nov 15, 2019
1 parent 28af364 commit 6cfb30f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
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

0 comments on commit 6cfb30f

Please sign in to comment.