Skip to content

Commit

Permalink
Update installation for 2024.2
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonGrodin committed Aug 13, 2024
1 parent cd18a5a commit 16d5fcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function getArchitecture(version, armAllowed = false) {
}
function acquireNJGitHub(version) {
return __awaiter(this, void 0, void 0, function* () {
yield exec.exec("git", ["clone", "https://github.com/smlnj/smlnj.git"]);
yield exec.exec("git", ["clone", "--depth", "1", "--branch", "v" + version, "--recurse-submodules", "https://github.com/smlnj/smlnj.git"]);
let filename = util.format("boot.%s-unix.tgz", getArchitecture(version, true));
let downloadUrl = util.format("https://smlnj.org/dist/working/%s/%s", version, filename);
core.debug("Downloading SML/NJ from: " + downloadUrl);
Expand Down
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function getArchitecture(version: string, armAllowed: boolean = false): string {


async function acquireNJGitHub(version: string): Promise<string> {
await exec.exec("git", ["clone", "https://github.com/smlnj/smlnj.git"]);
await exec.exec("git", ["clone", "--depth", "1", "--branch", "v" + version, "--recurse-submodules", "https://github.com/smlnj/smlnj.git"]);

let filename: string = util.format("boot.%s-unix.tgz", getArchitecture(version, true))

Expand Down

0 comments on commit 16d5fcb

Please sign in to comment.