|
|
|
@ -42367,7 +42367,7 @@ function parseGoVersionFile(versionFilePath) {
|
|
|
|
// 'GOTOOLCHAIN' has been explicitly set
|
|
|
|
// 'GOTOOLCHAIN' has been explicitly set
|
|
|
|
if (process.env[GOTOOLCHAIN_ENV_VAR] !== GOTOOLCHAIN_LOCAL_VAL) {
|
|
|
|
if (process.env[GOTOOLCHAIN_ENV_VAR] !== GOTOOLCHAIN_LOCAL_VAL) {
|
|
|
|
// toolchain directive: https://go.dev/ref/mod#go-mod-file-toolchain
|
|
|
|
// toolchain directive: https://go.dev/ref/mod#go-mod-file-toolchain
|
|
|
|
const matchToolchain = contents.match(/^toolchain go(1\.\d+(?:\.\d+|rc\d+)?)/m);
|
|
|
|
const matchToolchain = contents.match(/^toolchain go(1\.\d+(?:\.\d+|(beta|rc)\d+)?)/m);
|
|
|
|
if (matchToolchain) {
|
|
|
|
if (matchToolchain) {
|
|
|
|
return matchToolchain[1];
|
|
|
|
return matchToolchain[1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|