Skip to content

Commit 66c323c

Browse files
committed
Install goss via mise
1 parent 5d982ac commit 66c323c

4 files changed

Lines changed: 4 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@ jobs:
1212
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1313
with:
1414
submodules: recursive
15+
- uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1
1516
- name: "Workaround: Prepare ~/.local/share/chezmoi"
1617
run: |
1718
mkdir -p "$HOME/.local/share"
1819
ln -s "$(pwd)" "$HOME/.local/share/chezmoi"
19-
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
20-
- name: Install goss
21-
run: |
22-
sudo curl -L https://github.com/goss-org/goss/releases/latest/download/goss-darwin-amd64 -o /usr/local/bin/goss
23-
sudo chmod +rx /usr/local/bin/goss
2420
- name: Copy install.sh to outside of the repository
2521
run: |
2622
cp ./install.sh /tmp/install.sh
@@ -30,10 +26,6 @@ jobs:
3026
./install.sh
3127
# Run script twice to test idempotency
3228
./install.sh
33-
- name: Validate with goss
34-
run: |
35-
cd "$HOME/.local/share/chezmoi"
36-
GOSS_USE_ALPHA=1 goss validate --format documentation
3729
3830
test-static:
3931
runs-on: ubuntu-latest

mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[tools]
22
deno = "2.5"
3+
4+
"github:goss-org/goss" = "latest"

src/.chezmoiexternal.toml.tmpl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
{{ $refreshPeriod := "168h" -}}
22

3-
{{ $goss := "goss-darwin-arm64" -}}
4-
5-
{{ if ne $goss "" -}}
6-
["bin/goss"]
7-
type = "file"
8-
url = "https://github.com/goss-org/goss/releases/latest/download/{{ $goss }}"
9-
executable = true
10-
refreshPeriod = "{{ $refreshPeriod }}"
11-
{{ end -}}
12-
133
{{ $nvim := ".config/nvim" -}}
144

155
["{{ $nvim }}/pack/vendor/start/copilot.vim"]
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
22
set -eu
33
cd "$HOME/.local/share/chezmoi"
4-
# Calling with absolute path for the case where $HOME/bin is not set in PATH
5-
GOSS_USE_ALPHA=1 "$HOME/bin/goss" validate --format documentation
4+
GOSS_USE_ALPHA=1 mise exec goss -- goss validate --format documentation

0 commit comments

Comments
 (0)