Skip to content

Commit

Permalink
Add go 1.20 (#65)
Browse files Browse the repository at this point in the history
* Add go 1.20

* Prep for 0.1.2 release

* Add test/example for go 1.20
  • Loading branch information
joshwlewis authored Feb 6, 2023
1 parent e2ff05e commit 2ff6e14
Show file tree
Hide file tree
Showing 147 changed files with 285,719 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.2] 2023/02/06
- Added go1.20

## [0.1.1] 2023/01/23

- Added go1.19.5, go1.19.4, go1.19.3, go1.19.2, go1.19.1, go1.19
Expand Down
2 changes: 1 addition & 1 deletion buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ api = "0.8"

[buildpack]
id = "heroku/go"
version = "0.1.1"
version = "0.1.2"
name = "Heroku Go"
homepage = "https://github.com/heroku/buildpacks-go"
keywords = ["go", "golang", "heroku"]
Expand Down
6 changes: 6 additions & 0 deletions inventory.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[[artifacts]]
go_version = "go1.20"
semantic_version = "1.20.0"
architecture = "linux-amd64"
sha_checksum = "5a9ebcc65c1cce56e0d2dc616aff4c4cedcfbda8cc6f0288cc08cda3b18dcbf1"

[[artifacts]]
go_version = "go1.20rc3"
semantic_version = "1.20.0-rc3"
Expand Down
11 changes: 11 additions & 0 deletions tests/fixtures/vendor_fasthttp_120/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module example.com/vendor_fasthttp_120

go 1.20

require github.com/valyala/fasthttp v1.44.0

require (
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/klauspost/compress v1.15.9 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
)
21 changes: 21 additions & 0 deletions tests/fixtures/vendor_fasthttp_120/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY=
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/klauspost/compress v1.15.9 h1:wKRjX6JRtDdrE9qwa4b/Cip7ACOshUI4smpCQanqjSY=
github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.44.0 h1:R+gLUhldIsfg1HokMuQjdQ5bh9nuXHPIfvkYUu9eR5Q=
github.com/valyala/fasthttp v1.44.0/go.mod h1:f6VbjjoI3z1NDOZOv17o6RvtRSWxC77seBFc2uWtgiY=
github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220906165146-f3363e06e74c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
28 changes: 28 additions & 0 deletions tests/fixtures/vendor_fasthttp_120/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package main

import (
"flag"
"fmt"
"log"
"os"

"github.com/valyala/fasthttp"
)


func main() {
flag.Parse()

port := os.Getenv("PORT")
if port == "" { port = "8080" }
addr := ":" + port;

if err := fasthttp.ListenAndServe(addr, requestHandler); err != nil {
log.Fatalf("Error in ListenAndServe: %v", err)
}
}

func requestHandler(ctx *fasthttp.RequestCtx) {
ctx.SetContentType("text/plain; charset=utf8")
fmt.Fprintf(ctx, "Hello from vendor_fasthttp_120!")
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2ff6e14

Please sign in to comment.