Skip to content

Commit

Permalink
Add go1.21, use for go1.21.0 (#522)
Browse files Browse the repository at this point in the history
* Add go1.21, use for go1.21.0

* Adjust defaults to match new version naming: 1.21.0

* Load go1.21.0 not go1.21

* Update changelog entry to reflect new version naming upstream

* No longer need a version expansion for first release
  • Loading branch information
joshwlewis authored Aug 14, 2023
1 parent 7d4f622 commit db40e51
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## v178 (2023-08-14)
* Add go1.21.0
* Use go1.21.0 for go1.21

## v177 (2023-08-07)
* Add go1.20.7
* Add go1.19.12
Expand Down
2 changes: 2 additions & 0 deletions data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"Go": {
"DefaultVersion": "go1.12.17",
"VersionExpansion": {
"go1.21": "go1.21.0",
"go1.20.0": "go1.20",
"go1.20": "go1.20.7",
"go1.19.0": "go1.19",
Expand Down Expand Up @@ -131,6 +132,7 @@
"go1.18.10.linux-amd64.tar.gz",
"go1.19.12.linux-amd64.tar.gz",
"go1.20.7.linux-amd64.tar.gz",
"go1.21.0.linux-amd64.tar.gz",
"go1.4.3.linux-amd64.tar.gz",
"go1.6.4.linux-amd64.tar.gz",
"go1.7.6.linux-amd64.tar.gz",
Expand Down
4 changes: 4 additions & 0 deletions files.json
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,10 @@
"SHA": "5a9ebcc65c1cce56e0d2dc616aff4c4cedcfbda8cc6f0288cc08cda3b18dcbf1",
"URL": "https://dl.google.com/go/go1.20.linux-amd64.tar.gz"
},
"go1.21.0.linux-amd64.tar.gz": {
"SHA": "d0398903a16ba2232b389fb31032ddf57cac34efda306a0eebac34f0965a0742",
"URL": "https://dl.google.com/go/go1.21.0.linux-amd64.tar.gz"
},
"go1.3.1.linux-amd64.tar.gz": {
"SHA": "3af011cc19b21c7180f2604fd85fbc4ddde97143",
"URL": "https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz"
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/mod-basic-go121/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: fixture
3 changes: 3 additions & 0 deletions test/fixtures/mod-basic-go121/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// +heroku goVersion 1.21

module github.com/heroku/fixture
7 changes: 7 additions & 0 deletions test/fixtures/mod-basic-go121/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("hello")
}
14 changes: 14 additions & 0 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,20 @@ testModBasicGo120() {
assertInstalledFixtureBinary
}

testModBasicGo121() {
fixture "mod-basic-go121"

assertDetected

compile
assertModulesBoilerplateCaptured
assertCaptured "Installing go1.21"
assertGoInstallOnlyFixturePackageCaptured

assertCapturedSuccess
assertInstalledFixtureBinary
}

testModBasicWithoutProcfile() {
fixture "mod-basic-wo-procfile"

Expand Down

0 comments on commit db40e51

Please sign in to comment.