Skip to content

Commit

Permalink
Deprecate Go 1.20.x (EOL)
Browse files Browse the repository at this point in the history
  • Loading branch information
brayanhenao committed Mar 4, 2024
1 parent 51bf2bf commit df01d5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 27 deletions.
20 changes: 0 additions & 20 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ default_versions:
- name: go
version: 1.21.x
dependency_deprecation_dates:
- version_line: 1.20.x
name: go
date: 2024-02-01
link: https://golang.org/doc/devel/release.html
- version_line: 1.21.x
name: go
date: 2024-08-15
Expand Down Expand Up @@ -45,22 +41,6 @@ dependencies:
- cflinuxfs4
source: https://github.com/Masterminds/glide/archive/v0.13.3.tar.gz
source_sha256: 817dad2f25303d835789c889bf2fac5e141ad2442b9f75da7b164650f0de3fee
- name: go
version: 1.20.14
uri: https://buildpacks.cloudfoundry.org/dependencies/go/go_1.20.14_linux_x64_cflinuxfs3_b8087174.tgz
sha256: b80871743cdf21d68d5fc9c468a11339ed6a0fb76d69a1a72bf7518de7c67e18
cf_stacks:
- cflinuxfs3
source: https://dl.google.com/go/go1.20.14.src.tar.gz
source_sha256: 1aef321a0e3e38b7e91d2d7eb64040666cabdcc77d383de3c9522d0d69b67f4e
- name: go
version: 1.20.14
uri: https://buildpacks.cloudfoundry.org/dependencies/go/go_1.20.14_linux_x64_cflinuxfs4_b011f31b.tgz
sha256: b011f31b59c5a937858796e25223df985d3cb48f45326077bd80e4cf84564da8
cf_stacks:
- cflinuxfs4
source: https://dl.google.com/go/go1.20.14.src.tar.gz
source_sha256: 1aef321a0e3e38b7e91d2d7eb64040666cabdcc77d383de3c9522d0d69b67f4e
- name: go
version: 1.21.7
uri: https://buildpacks.cloudfoundry.org/dependencies/go/go_1.21.7_linux_x64_cflinuxfs3_2f9beffc.tgz
Expand Down
2 changes: 1 addition & 1 deletion src/go/integration/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestIntegration(t *testing.T) {
suite("Glide", testGlide(platform, fixtures))
suite("GoToolchain", testGoToolchain(platform, fixtures))
suite("Godep", testGodep(platform, fixtures))
suite("Modules", testModules(platform, fixtures))
suite.Focus("Modules", testModules(platform, fixtures))
suite("MultiBuildpack", testMultiBuildpack(platform, fixtures))
suite("Override", testOverride(platform, fixtures))

Expand Down
10 changes: 5 additions & 5 deletions src/go/integration/modules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func testModules(platform switchblade.Platform, fixtures string) func(*testing.T
it("builds the app with modules", func() {
deployment, logs, err := platform.Deploy.
WithEnv(map[string]string{
"GOVERSION": "go1.20",
"GOVERSION": "go1.22",
}).
Execute(name, filepath.Join(fixtures, "mod", "simple"))
Expect(err).NotTo(HaveOccurred())
Expand All @@ -47,7 +47,7 @@ func testModules(platform switchblade.Platform, fixtures string) func(*testing.T
deployment, logs, err := platform.Deploy.
WithEnv(map[string]string{
"GO_INSTALL_PACKAGE_SPEC": "github.com/full/path/cmd/app",
"GOVERSION": "go1.20",
"GOVERSION": "go1.22",
}).
Execute(name, filepath.Join(fixtures, "mod", "install_package_spec", "absolute"))
Expect(err).NotTo(HaveOccurred())
Expand All @@ -61,7 +61,7 @@ func testModules(platform switchblade.Platform, fixtures string) func(*testing.T
deployment, logs, err := platform.Deploy.
WithEnv(map[string]string{
"GO_INSTALL_PACKAGE_SPEC": "./cmd/app",
"GOVERSION": "go1.20",
"GOVERSION": "go1.22",
}).
Execute(name, filepath.Join(fixtures, "mod", "install_package_spec", "relative"))
Expect(err).NotTo(HaveOccurred())
Expand All @@ -77,7 +77,7 @@ func testModules(platform switchblade.Platform, fixtures string) func(*testing.T
deployment, logs, err := platform.Deploy.
WithEnv(map[string]string{
"GOPACKAGENAME": "go-online",
"GOVERSION": "go1.20",
"GOVERSION": "go1.22",
}).
Execute(name, filepath.Join(fixtures, "mod", "vendored"))
Expect(err).NotTo(HaveOccurred())
Expand All @@ -91,7 +91,7 @@ func testModules(platform switchblade.Platform, fixtures string) func(*testing.T
deployment, logs, err := platform.Deploy.
WithEnv(map[string]string{
"GO_INSTALL_PACKAGE_SPEC": "github.com/full/path/cmd/app",
"GOVERSION": "go1.20",
"GOVERSION": "go1.22",
}).
Execute(name, filepath.Join(fixtures, "mod", "install_package_spec", "vendored"))
Expect(err).NotTo(HaveOccurred())
Expand Down
2 changes: 1 addition & 1 deletion src/go/integration/offline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func testOffline(platform switchblade.Platform, fixtures string) func(*testing.T
deployment, logs, err := platform.Deploy.
WithEnv(map[string]string{
"GO_INSTALL_PACKAGE_SPEC": "github.com/full/path/cmd/app",
"GOVERSION": "go1.20",
"GOVERSION": "go1.22",
}).
WithoutInternetAccess().
Execute(name, filepath.Join(fixtures, "mod", "install_package_spec", "vendored"))
Expand Down

0 comments on commit df01d5c

Please sign in to comment.