From 7492e96c57a276fdb26992c30249eea1063b8711 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 16 Sep 2021 17:24:43 -0500 Subject: [PATCH] fix: use gcc 11 instead of 11.2.0 brew fails with 11.2.0 Update gcc.test.ts --- src/default_versions.ts | 2 +- src/gcc/__tests__/gcc.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/default_versions.ts b/src/default_versions.ts index 5a421dc5..57eb8083 100644 --- a/src/default_versions.ts +++ b/src/default_versions.ts @@ -7,7 +7,7 @@ const DefaultVersions: Record = { conan: "1.40.1", meson: "0.59.1", python: "3.x", - gcc: "11.2.0", + gcc: "11", } /** Get the default version if passed true or undefined, otherwise return the version itself */ diff --git a/src/gcc/__tests__/gcc.test.ts b/src/gcc/__tests__/gcc.test.ts index b802de11..b0ef0e46 100644 --- a/src/gcc/__tests__/gcc.test.ts +++ b/src/gcc/__tests__/gcc.test.ts @@ -4,7 +4,7 @@ import { setupGcc } from "../gcc" jest.setTimeout(200000) describe("setup-gcc", () => { it("should setup gcc", async () => { - const installInfo = await setupGcc("11.2.0", "", "") + const installInfo = await setupGcc("11", "", "") await testBin("g++", ["--version"], installInfo?.binDir) })