-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Currently if multiple assets with different packaging are found (zip,tgz, etc), install-binary will fail to find the binary. By using the following patch, the install-binary can simply select one of the options.
Index: src/index.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/index.ts b/src/index.ts
--- a/src/index.ts (revision 3a369a4f1787bc51dc3b5b8f6055920fef1d2eca)
+++ b/src/index.ts (date 1720012936647)
@@ -286,6 +286,9 @@
return list[i];
}
}
+ } else {
+ // select the first artifact we have multiple gz/tgz/etc
+ return list[0];
}
}
}
Index: .github/workflows/ci.yml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
--- a/.github/workflows/ci.yml (revision 3a369a4f1787bc51dc3b5b8f6055920fef1d2eca)
+++ b/.github/workflows/ci.yml (date 1720012985235)
@@ -98,4 +98,20 @@
- name: Test
run: |
jq --version
- shell: bash
\ No newline at end of file
+ shell: bash
+
+ test-install-nats:
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v4
+ - name: Install binary
+ uses: ./
+ with:
+ repo: nats-io/nats-server
+ - name: Test
+ run: |
+ nats-server --version
+ shell: bash
\ No newline at end of fileMetadata
Metadata
Assignees
Labels
No labels