Skip to content

Commit 2a68ed9

Browse files
committed
Hot fix for extra 'v' in version string on windows
1 parent 142ec0a commit 2a68ed9

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
java-version: '8'
4747

4848
- name: Install clojure tools
49-
uses: DeLaGuardo/setup-clojure@13.3
49+
uses: DeLaGuardo/setup-clojure@13.4
5050
with:
5151
# Install just one or all simultaneously
5252
# The value must indicate a particular version of the tool, or use 'latest'

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ function toolVersion(version, githubAuth) {
356356
const res = yield client.getJson(url, githubAuth ? { Authorization: githubAuth } : {});
357357
const versionString = (_a = res.result) === null || _a === void 0 ? void 0 : _a.tag_name;
358358
if (versionString) {
359-
return versionString;
359+
return versionString.replace(/^v/, '');
360360
}
361361
throw new Error(`Can't obtain latest Clojure CLI version`);
362362
}
@@ -1309,7 +1309,7 @@ function isMacOS() {
13091309

13101310
Object.defineProperty(exports, "__esModule", ({ value: true }));
13111311
exports.VERSION = void 0;
1312-
exports.VERSION = '13-3';
1312+
exports.VERSION = '13-4';
13131313

13141314

13151315
/***/ }),

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-clojure",
3-
"version": "13.3",
3+
"version": "13.4",
44
"private": true,
55
"description": "setup clojure action",
66
"main": "lib/setup-clojure.js",

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function toolVersion(
3131
)
3232
const versionString = res.result?.tag_name
3333
if (versionString) {
34-
return versionString
34+
return versionString.replace(/^v/, '')
3535
}
3636

3737
throw new Error(`Can't obtain latest Clojure CLI version`)

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '13-3'
1+
export const VERSION = '13-4'

0 commit comments

Comments
 (0)