diff --git a/CHANGELOG.md b/CHANGELOG.md index 6adc12b74d3..461973f0116 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## v0.3.0 - 2019-08-08 - New project structure can be generated with the `gleam new` command. - Functions can be annotated with their argument and return types. This may be diff --git a/bin/build-linux-release.sh b/bin/build-linux-release.sh index 2b9a1e97206..980ab2dfb34 100755 --- a/bin/build-linux-release.sh +++ b/bin/build-linux-release.sh @@ -4,10 +4,12 @@ set -eu GLEAM_ROOT=$(pwd) TAG=$(git tag --points-at HEAD) -DOCKER_TAG=lpil/gleam:${TAG:1} +DOCKER_TAG=lpil/gleam:$(echo $TAG | tail -c +2) ARCHIVE=gleam-$TAG-linux-amd64.tar.gz CONTAINER_NAME=gleam-linux-builder +echo Building $DOCKER_TAG + cd gleam docker build . -t $DOCKER_TAG docker push $DOCKER_TAG diff --git a/gleam/Cargo.lock b/gleam/Cargo.lock index 827dca378d8..fea3958baf1 100644 --- a/gleam/Cargo.lock +++ b/gleam/Cargo.lock @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "gleam" -version = "0.3.0-dev" +version = "0.3.0" dependencies = [ "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "codespan 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/gleam/Cargo.toml b/gleam/Cargo.toml index d498fb10559..75d0c511a6d 100644 --- a/gleam/Cargo.toml +++ b/gleam/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gleam" -version = "0.3.0-dev" +version = "0.3.0" authors = ["Louis Pilfold "] edition = "2018" diff --git a/gleam/Dockerfile b/gleam/Dockerfile index 6b6bde6a017..e7f5906ef9e 100644 --- a/gleam/Dockerfile +++ b/gleam/Dockerfile @@ -2,7 +2,7 @@ FROM ekidd/rust-musl-builder:1.34.2 as build # Build COPY . . -RUN cargo build --release +RUN sudo chown -R rust:rust /home/rust && cargo build --release # Create user FROM alpine:latest as alpine diff --git a/gleam/src/new.rs b/gleam/src/new.rs index 88445efe084..48bba1dc7c1 100644 --- a/gleam/src/new.rs +++ b/gleam/src/new.rs @@ -63,7 +63,7 @@ fn write(path: PathBuf, contents: &str) { } fn gleam_toml(name: &str) -> String { - format!("name = {}\n", name) + format!("name = \"{}\"\n", name) } fn readme(name: &str) -> String {