Skip to content
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
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ jobs:

- name: Check a Linux binary really is static
if: matrix.musl
run: file target/${{ matrix.target }}/release/loch | grep -q "statically linked"
# Rust links x86_64 musl as static-pie, which `file` reports as
# "static-pie linked" rather than "statically linked". What makes a
# binary static either way is having no program interpreter.
run: |
bin=target/${{ matrix.target }}/release/loch
file "$bin"
if readelf -l "$bin" | grep -q INTERP; then
echo "$bin requests a dynamic loader" >&2
exit 1
fi

- name: Package
run: |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ loch is a single static binary. Take the one for your platform from
[GitHub releases](https://github.com/ness-dev/loch/releases), for example:

```sh
curl -L https://github.com/ness-dev/loch/releases/download/v0.1.0/loch-0.1.0-aarch64-apple-darwin.tar.gz \
| tar xz --strip-components 1 -C ~/.local/bin loch-0.1.0-aarch64-apple-darwin/loch
curl -L https://github.com/ness-dev/loch/releases/download/v0.2.0/loch-0.2.0-aarch64-apple-darwin.tar.gz \
| tar xz --strip-components 1 -C ~/.local/bin loch-0.2.0-aarch64-apple-darwin/loch
loch --version
```

Expand Down Expand Up @@ -140,7 +140,7 @@ ref=$(loch save --json --store /tmp/outbound | jq -r .ref)
loch restore --json "$ref" --into /path/to/repo --store /tmp/outbound

loch --version --json
# {"schema":2,"ok":true,"command":"version","version":"0.1.0"}
# {"schema":2,"ok":true,"command":"version","version":"0.2.0"}
```

Failures are documents too, on stdout, so one stream carries both outcomes:
Expand Down
Loading