diff --git a/README.md b/README.md index d1ee28f..46f9baf 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The V2 offers: - Check latest version - Bug Fixes (including issues around version matching and semver) -The action will first check the local cache for a version match. If a version is not found locally, it will pull it from the `main` branch of the [go-versions](https://github.com/actions/go-versions/blob/main/versions-manifest.json) repository and on miss or failure, will fall back to the previous behavior of downloading directly from [go dist](https://storage.googleapis.com/golang). To change the default behaviour please use the [check-latest input](#check-latest-version). +The action will first check the local cache for a version match. If a version is not found locally, it will pull it from the `main` branch of the [go-versions](https://github.com/actions/go-versions/blob/main/versions-manifest.json) repository. On miss or failure, it will fall back to downloading directly from [go dist](https://storage.googleapis.com/golang). To change the default behavior, please use the [check-latest input](#check-latest-version). Matching by [semver spec](https://github.com/npm/node-semver): ```yaml diff --git a/__tests__/setup-go.test.ts b/__tests__/setup-go.test.ts index ac44c64..1e64b17 100644 --- a/__tests__/setup-go.test.ts +++ b/__tests__/setup-go.test.ts @@ -724,7 +724,7 @@ describe('setup-go', () => { 'Attempt to resolve the latest version from manifest...' ); expect(logSpy).toHaveBeenCalledWith( - 'Unable to resolve version from manifest...' + 'Unable to resolve a version from the manifest...' ); expect(logSpy).toHaveBeenCalledWith( `Failed to resolve version ${versionSpec} from manifest` diff --git a/dist/index.js b/dist/index.js index 51dfb34..a5d33fb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5966,7 +5966,7 @@ function resolveVersionFromManifest(versionSpec, stable, auth) { return info === null || info === void 0 ? void 0 : info.resolvedVersion; } catch (err) { - core.info('Unable to resolve version from manifest...'); + core.info('Unable to resolve a version from the manifest...'); core.debug(err.message); } }); diff --git a/src/installer.ts b/src/installer.ts index 1b453ea..99d6e1a 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -122,7 +122,7 @@ async function resolveVersionFromManifest( const info = await getInfoFromManifest(versionSpec, stable, auth); return info?.resolvedVersion; } catch (err) { - core.info('Unable to resolve version from manifest...'); + core.info('Unable to resolve a version from the manifest...'); core.debug(err.message); } }