Skip to content

Commit 9840a7e

Browse files
update v6 features and improve version patterns table
1 parent fb1f86c commit 9840a7e

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,8 @@ go 1.23.0 // Minimum required version
4040
toolchain go1.23.2 // V6 uses this exact version
4141
```
4242

43-
**Advanced Version Resolution**
44-
Supports comprehensive version patterns:
45-
- Comparison operators: `>=1.23.0`, `<1.24.0`
46-
- Semantic versioning: `~1.23.0` (patch updates), `^1.23.0` (minor updates)
47-
- Wildcards: `1.23.x`, `1.*`
48-
4943
**Intelligent Caching**
50-
Cache keys now incorporate toolchain-specific metadata, eliminating version conflicts when switching between golang versions in your workflows.
44+
Cache keys now incorporate the `toolchain` directive version from `go.mod`, eliminating cache conflicts when switching between different toolchain versions within the same Go minor release.
5145

5246
For more details, see the [full release notes](https://github.com/actions/setup-go/releases/tag/v6.0.0).
5347

@@ -347,12 +341,16 @@ jobs:
347341

348342
| Syntax Type | Example | Description |
349343
|-------------|---------|-------------|
350-
| Specific version | `1.23.2` | Exact version |
351-
| Semantic range | `^1.23.0` | Compatible with 1.23.0 |
352-
| Comparison operators | `>=1.22.0` | Version 1.22.0 or higher |
353-
| Wildcards | `1.23.x` | Latest patch of 1.23 |
354-
| Pre-release | `1.24.0-rc.1` | Release candidate |
355-
| Aliases | `stable`, `oldstable` | Latest stable versions |
344+
| Specific version | `1.23.2` | Installs this exact version |
345+
| Semantic range (caret) | `^1.23.0` | Allows newer minor/patch versions (1.24.x, 1.25.x, etc.) |
346+
| Semantic range (tilde) | `~1.23.0` | Allows newer patch versions only (1.23.1, 1.23.2, etc.) |
347+
| Comparison (gte) | `>=1.22.0` | Any version equal to or newer than specified |
348+
| Comparison (lt) | `<1.24.0` | Any version older than specified |
349+
| Comparison range | `>=1.22.0 <1.24.0` | Any version within the specified range |
350+
| Wildcard (patch) | `1.23.x` | Latest patch version of the specified minor release |
351+
| Wildcard (minor) | `1.*` | Latest available version in the major version |
352+
| Pre-release | `1.24.0-rc.1` | Beta/RC versions for testing upcoming releases |
353+
| Aliases | `stable`, `oldstable` | Latest stable or previous stable release |
356354

357355
For more information about semantic versioning, see the [semver documentation](https://semver.org/).
358356

0 commit comments

Comments
 (0)