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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ to run - sluice builds the image and runs it.
## Install

```bash
curl -fsSL https://raw.githubusercontent.com/Pyronewbic/Sluice/main/install.sh | sh
brew install Pyronewbic/tap/sluice
# or: curl -fsSL https://raw.githubusercontent.com/Pyronewbic/Sluice/main/install.sh | sh
# or, from a checkout: ./install.sh
```

Symlinks `bin/sluice` into `~/.local/bin` (ensure it's on `PATH`). Needs **docker** or
**podman** to build and run (`sluice init` needs neither). (A Homebrew tap is coming - see
[`packaging/`](packaging/).)
The installer symlinks `bin/sluice` into `~/.local/bin` (ensure it's on `PATH`). Needs
**docker** or **podman** to build and run (`sluice init` needs neither).

## Use

Expand Down
6 changes: 3 additions & 3 deletions bin/sluice
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ CORE="$ROOT/core"
die() { echo "[sluice] $*" >&2; exit 1; }

# --- version + help ------------------------------------------------------------
SLUICE_VERSION="0.1.0" # fallback when not a git checkout
sluice_version() { # git tag if available, else the baked constant
SLUICE_VERSION="0.1.1" # fallback when not a git checkout
sluice_version() { # git tag if $ROOT is our own checkout, else the baked constant
local v
if v="$(git -C "$ROOT" describe --tags --always --dirty 2>/dev/null)" && [ -n "$v" ]; then
if [ -e "$ROOT/.git" ] && v="$(git -C "$ROOT" describe --tags --always --dirty 2>/dev/null)" && [ -n "$v" ]; then
printf '%s' "${v#v}"
else
printf '%s' "$SLUICE_VERSION"
Expand Down
5 changes: 3 additions & 2 deletions packaging/homebrew/sluice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
class Sluice < Formula
desc "Sandboxed, egress-firewalled container runner for projects and coding agents"
homepage "https://github.com/Pyronewbic/Sluice"
url "https://github.com/Pyronewbic/Sluice/archive/refs/tags/v0.1.0.tar.gz"
sha256 "0000000000000000000000000000000000000000000000000000000000000000" # TODO: fill at release
# Template; the live, sha-pinned formula is in the tap (github.com/Pyronewbic/homebrew-tap).
url "https://github.com/Pyronewbic/Sluice/archive/refs/tags/v0.1.1.tar.gz"
sha256 "0000000000000000000000000000000000000000000000000000000000000000" # set in the tap at release
license "Apache-2.0"

# Runtime needs docker or podman, which Homebrew shouldn't manage - documented, not a dep.
Expand Down
Loading