File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,7 @@ async function composeOpamCacheKeys() {
65
65
PLATFORM === "win32"
66
66
? PLATFORM
67
67
: `${ PLATFORM } -${ ( await getSystemIdentificationInfo ( ) ) . version } ` ;
68
- const opamVersion =
69
- PLATFORM === "win32" ? "0.0.0.2" : ( await getLatestOpamRelease ( ) ) . version ;
68
+ const opamVersion = ( await getLatestOpamRelease ( ) ) . version ;
70
69
const ocamlCompiler = await resolveCompiler ( OCAML_COMPILER ) ;
71
70
const ocamlVersion = ocamlCompiler . toLowerCase ( ) . replaceAll ( / \W / g, "_" ) ;
72
71
const sandboxed = OPAM_DISABLE_SANDBOXING ? "nosandbox" : "sandbox" ;
Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ import {
28
28
import { getCygwinVersion } from "./win32.js" ;
29
29
30
30
export async function getLatestOpamRelease ( ) {
31
- const semverRange = ALLOW_PRERELEASE_OPAM ? "*" : "<2.2.0" ;
31
+ const semverRange =
32
+ ALLOW_PRERELEASE_OPAM
33
+ ? "*"
34
+ : "<2.3.0" ;
32
35
const octokit = github . getOctokit ( GITHUB_TOKEN ) ;
33
36
const opam_platform = PLATFORM === "win32" ? "windows" : PLATFORM ;
34
37
const { data : releases } = await octokit . rest . repos . listReleases ( {
You can’t perform that action at this time.
0 commit comments