Skip to content

Commit

Permalink
Update Go Inventory (#214)
Browse files Browse the repository at this point in the history
* Update Inventory for heroku/go

Added go1.20.14, go1.21.7, go1.22.0.

* Add tests for go1.22 line

---------

Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
Co-authored-by: Josh W Lewis <[email protected]>
  • Loading branch information
heroku-linguist[bot] and joshwlewis authored Feb 8, 2024
1 parent 67d07c3 commit 3be377c
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions buildpacks/go/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Added go1.20.14, go1.21.7, go1.22.0.
## [0.1.15] - 2024-02-06

- Added go1.22rc2.
Expand Down
18 changes: 18 additions & 0 deletions buildpacks/go/inventory.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[[artifacts]]
go_version = "go1.22.0"
semantic_version = "1.22.0"
architecture = "linux-amd64"
sha_checksum = "f6c8a87aa03b92c4b0bf3d558e28ea03006eb29db78917daec5cfb6ec1046265"

[[artifacts]]
go_version = "go1.22rc2"
semantic_version = "1.22.0-rc2"
Expand All @@ -10,6 +16,12 @@ semantic_version = "1.22.0-rc1"
architecture = "linux-amd64"
sha_checksum = "fbe9d0585b9322d44008f6baf78b391b22f64294338c6ce2b9eb6040d6373c52"

[[artifacts]]
go_version = "go1.21.7"
semantic_version = "1.21.7"
architecture = "linux-amd64"
sha_checksum = "13b76a9b2a26823e53062fa841b07087d48ae2ef2936445dc34c4ae03293702c"

[[artifacts]]
go_version = "go1.21.6"
semantic_version = "1.21.6"
Expand Down Expand Up @@ -76,6 +88,12 @@ semantic_version = "1.21.0-rc1"
architecture = "linux-amd64"
sha_checksum = "d3f54a95b085cd6745fb306910b36670dac4e9e985c8f2920e6bcc35b9d7feb9"

[[artifacts]]
go_version = "go1.20.14"
semantic_version = "1.20.14"
architecture = "linux-amd64"
sha_checksum = "ff445e48af27f93f66bd949ae060d97991c83e11289009d311f25426258f9c44"

[[artifacts]]
go_version = "go1.20.13"
semantic_version = "1.20.13"
Expand Down
5 changes: 5 additions & 0 deletions buildpacks/go/tests/fixtures/basic_http_122/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module example.com/basic_http_122

// +heroku goVersion ~1.22.0

go 1.22
21 changes: 21 additions & 0 deletions buildpacks/go/tests/fixtures/basic_http_122/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// +build heroku

package main

import (
"fmt"
"os"
"net/http"
)

func root(w http.ResponseWriter, req *http.Request) {
fmt.Fprintf(w, "basic_http_122")
}

func main() {
port := os.Getenv("PORT")
if port == "" { port = "8080" }

http.HandleFunc("/", root)
http.ListenAndServe(":" + port, nil)
}
22 changes: 22 additions & 0 deletions buildpacks/go/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,25 @@ fn vendor_fasthttp_120_20() {
fn vendor_fasthttp_120_22() {
test_vendor_fasthttp_120("heroku/builder:22");
}

fn test_basic_http_122(builder: &str) {
test_go_fixture(
"basic_http_122",
builder,
&[
"Detected Go version requirement: ~1.22.0",
"Installing Go 1.22.",
],
&[],
);
}
#[test]
#[ignore = "integration test"]
fn basic_http_122_20() {
test_basic_http_122("heroku/builder:20");
}
#[test]
#[ignore = "integration test"]
fn basic_http_122_22() {
test_basic_http_122("heroku/builder:22");
}

0 comments on commit 3be377c

Please sign in to comment.