Skip to content

Commit c0e33de

Browse files
committed
src/goEnvironmentStatus: update hard coded go versions
Change-Id: I547c8635f076ba2ab12637307a5b541114714b9f Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/349751 Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
1 parent 81f6db9 commit c0e33de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/goEnvironmentStatus.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,11 @@ export async function getLatestGoVersions(): Promise<GoEnvironmentOption[]> {
543543
});
544544
} catch (e) {
545545
// hardcode the latest versions of Go in case golang.dl is unavailable
546+
// TODO(hyangah): consider to remove these hardcoded versions and instead
547+
// show error notification if necessary.
546548
results = [
547-
new GoEnvironmentOption('go get golang.org/dl/go1.15', 'Go 1.15'),
548-
new GoEnvironmentOption('go get golang.org/dl/go1.14.7', 'Go 1.14.7')
549+
new GoEnvironmentOption('go get golang.org/dl/go1.17.1', 'Go 1.17.1'),
550+
new GoEnvironmentOption('go get golang.org/dl/go1.16.8', 'Go 1.16.8')
549551
];
550552
}
551553
}

0 commit comments

Comments
 (0)