Closed srl295 closed 1 year ago
1.20.0 is so new the toolchain has not been updated for it. I can't even use 1.21.0 within flake.nix without jumping through some loops.
@tboerger just trying to be a responsible user :)
I have upgraded the toolchain to 1.21.0 which is working fine: https://github.com/promhippie/github_exporter/pull/246
Beside that I have also built it with 1.21.0 without a problem:
❯ podman run -ti --rm -v $(pwd):$(pwd):Z -w $(pwd) ghcr.io/dockhippie/golang:1.21 bash
root@e32dfd7f28a1: /home/thomas/Developer/promhippie/github_exporter # go version
go version go1.21.0 linux/amd64
root@e32dfd7f28a1: /home/thomas/Developer/promhippie/github_exporter # make generate build
go: downloading github.com/prometheus/client_golang v1.16.0
go: downloading github.com/bradleyfalzon/ghinstallation/v2 v2.6.0
go: downloading github.com/go-kit/log v0.2.1
go: downloading github.com/urfave/cli/v2 v2.25.7
go: downloading github.com/oklog/run v1.1.0
go: downloading github.com/prometheus/exporter-toolkit v0.10.0
go: downloading golang.org/x/oauth2 v0.11.0
go: downloading github.com/go-chi/chi/v5 v5.0.10
go: downloading github.com/google/go-github/v53 v53.2.0
go: downloading github.com/joho/godotenv v1.5.1
go: downloading github.com/ryanuber/go-glob v1.0.0
go: downloading github.com/golang-jwt/jwt/v4 v4.5.0
go: downloading github.com/go-logfmt/logfmt v0.6.0
go: downloading golang.org/x/crypto v0.12.0
go: downloading golang.org/x/sync v0.2.0
go: downloading github.com/prometheus/common v0.42.0
go: downloading github.com/coreos/go-systemd/v22 v22.5.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/prometheus/client_model v0.3.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/procfs v0.10.1
go: downloading google.golang.org/protobuf v1.31.0
go: downloading github.com/cespare/xxhash/v2 v2.2.0
go: downloading github.com/google/go-querystring v1.1.0
go: downloading github.com/ProtonMail/go-crypto v0.0.0-20230320150741-8451524ecd7e
go: downloading github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4
go: downloading github.com/golang/protobuf v1.5.3
go: downloading golang.org/x/net v0.14.0
go: downloading github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
go: downloading golang.org/x/sys v0.11.0
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/cloudflare/circl v1.3.3
go: downloading github.com/jpillora/backoff v1.0.0
go: downloading golang.org/x/text v0.12.0
go generate github.com/promhippie/github_exporter/cmd/github_exporter github.com/promhippie/github_exporter/pkg/action github.com/promhippie/github_exporter/pkg/command github.com/promhippie/github_exporter/pkg/config github.com/promhippie/github_exporter/pkg/exporter github.com/promhippie/github_exporter/pkg/middleware github.com/promhippie/github_exporter/pkg/version
CGO_ENABLED=0 go build -v -tags 'netgo' -ldflags '-s -w -extldflags "-static" -X "github.com/promhippie/github_exporter/pkg/version.String=349b340" -X "github.com/promhippie/github_exporter/pkg/version.Revision=349b340" -X "github.com/promhippie/github_exporter/pkg/version.Date=20230810"' -o bin/github_exporter ./cmd/github_exporter
container/list
crypto/internal/alias
crypto/internal/boring/sig
crypto/subtle
vendor/golang.org/x/crypto/cryptobyte/asn1
internal/nettrace
vendor/golang.org/x/crypto/internal/alias
image/color
google.golang.org/protobuf/internal/set
google.golang.org/protobuf/internal/flags
github.com/ProtonMail/go-crypto/internal/byteutil
runtime/metrics
internal/singleflight
google.golang.org/protobuf/internal/pragma
vendor/golang.org/x/net/dns/dnsmessage
golang.org/x/crypto/cast5
github.com/beorn7/perks/quantile
crypto/internal/nistec/fiat
crypto/internal/randutil
hash
text/tabwriter
github.com/cloudflare/circl/internal/sha3
math/rand
crypto/rc4
github.com/ProtonMail/go-crypto/openpgp/errors
internal/intern
vendor/golang.org/x/text/transform
crypto/cipher
crypto/internal/edwards25519/field
vendor/golang.org/x/crypto/internal/poly1305
encoding/pem
compress/bzip2
embed
github.com/go-logfmt/logfmt
crypto
encoding/hex
net/netip
net/url
io/ioutil
github.com/ProtonMail/go-crypto/openpgp/armor
compress/flate
hash/adler32
github.com/joho/godotenv
crypto/md5
crypto/sha1
github.com/cloudflare/circl/sign
image
golang.org/x/crypto/sha3
hash/crc32
mime
math/big
vendor/golang.org/x/sys/cpu
golang.org/x/sys/cpu
vendor/golang.org/x/text/unicode/bidi
vendor/golang.org/x/text/unicode/norm
crypto/internal/boring
crypto/internal/edwards25519
github.com/go-kit/log
crypto/des
crypto/aes
crypto/sha512
crypto/hmac
crypto/sha256
vendor/golang.org/x/crypto/chacha20
github.com/ProtonMail/go-crypto/eax
github.com/ProtonMail/go-crypto/ocb
golang.org/x/crypto/blake2b
github.com/google/go-querystring/query
vendor/golang.org/x/net/http2/hpack
net
vendor/golang.org/x/crypto/hkdf
golang.org/x/crypto/hkdf
github.com/go-kit/log/level
mime/quotedprintable
net/http/internal/ascii
net/http/internal
image/internal/imageutil
os/signal
vendor/golang.org/x/crypto/chacha20poly1305
github.com/ProtonMail/go-crypto/openpgp/aes/keywrap
github.com/ProtonMail/go-crypto/openpgp/internal/algorithm
github.com/cespare/xxhash/v2
hash/fnv
go/token
google.golang.org/protobuf/internal/version
image/jpeg
github.com/prometheus/common/model
github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
github.com/prometheus/procfs/internal/fs
compress/zlib
compress/gzip
github.com/prometheus/procfs/internal/util
golang.org/x/sys/unix
google.golang.org/protobuf/internal/detrand
golang.org/x/crypto/argon2
database/sql/driver
crypto/internal/nistec
runtime/debug
github.com/jpillora/backoff
golang.org/x/net/internal/timeseries
html
text/template/parse
github.com/oklog/run
vendor/golang.org/x/text/secure/bidirule
golang.org/x/text/transform
golang.org/x/text/unicode/bidi
golang.org/x/net/http2/hpack
gopkg.in/yaml.v2
google.golang.org/protobuf/internal/errors
golang.org/x/crypto/blowfish
golang.org/x/sync/errgroup
vendor/golang.org/x/net/idna
github.com/xrash/smetrics
github.com/ProtonMail/go-crypto/openpgp/s2k
github.com/russross/blackfriday/v2
database/sql
github.com/ryanuber/go-glob
internal/lazyregexp
google.golang.org/protobuf/encoding/protowire
golang.org/x/text/unicode/norm
runtime/pprof
internal/profile
runtime/trace
google.golang.org/protobuf/reflect/protoreflect
crypto/internal/boring/bbig
crypto/internal/bigmod
encoding/asn1
github.com/cloudflare/circl/internal/conv
crypto/rand
crypto/dsa
github.com/ProtonMail/go-crypto/openpgp/internal/encoding
github.com/cloudflare/circl/math
golang.org/x/text/secure/bidirule
crypto/ed25519
github.com/ProtonMail/go-crypto/openpgp/elgamal
golang.org/x/crypto/bcrypt
github.com/cloudflare/circl/math/fp25519
github.com/cloudflare/circl/math/fp448
github.com/cloudflare/circl/math/mlsbset
text/template
crypto/ecdh
crypto/elliptic
crypto/rsa
github.com/cloudflare/circl/dh/x25519
google.golang.org/protobuf/internal/encoding/messageset
google.golang.org/protobuf/internal/strs
google.golang.org/protobuf/internal/order
google.golang.org/protobuf/runtime/protoiface
google.golang.org/protobuf/internal/genid
google.golang.org/protobuf/internal/descfmt
google.golang.org/protobuf/internal/descopts
google.golang.org/protobuf/reflect/protoregistry
crypto/x509/pkix
github.com/cloudflare/circl/sign/ed25519
vendor/golang.org/x/crypto/cryptobyte
google.golang.org/protobuf/internal/encoding/text
github.com/cloudflare/circl/dh/x448
github.com/cloudflare/circl/ecc/goldilocks
github.com/ProtonMail/go-crypto/brainpool
github.com/ProtonMail/go-crypto/bitcurves
github.com/cpuguy83/go-md2man/v2/md2man
google.golang.org/protobuf/proto
golang.org/x/net/idna
google.golang.org/protobuf/internal/encoding/defval
html/template
github.com/urfave/cli/v2
crypto/ecdsa
github.com/cloudflare/circl/sign/ed448
vendor/golang.org/x/net/http/httpproxy
net/textproto
github.com/prometheus/procfs
crypto/x509
github.com/ProtonMail/go-crypto/openpgp/internal/ecc
google.golang.org/protobuf/encoding/prototext
google.golang.org/protobuf/internal/filedesc
golang.org/x/net/http/httpproxy
vendor/golang.org/x/net/http/httpguts
golang.org/x/net/http/httpguts
mime/multipart
github.com/ProtonMail/go-crypto/openpgp/ecdh
github.com/ProtonMail/go-crypto/openpgp/eddsa
github.com/ProtonMail/go-crypto/openpgp/ecdsa
github.com/ProtonMail/go-crypto/openpgp/packet
github.com/golang-jwt/jwt/v4
crypto/tls
google.golang.org/protobuf/internal/encoding/tag
github.com/promhippie/github_exporter/pkg/config
google.golang.org/protobuf/internal/impl
github.com/ProtonMail/go-crypto/openpgp
net/http/httptrace
github.com/coreos/go-systemd/v22/activation
net/http
google.golang.org/protobuf/internal/filetype
google.golang.org/protobuf/runtime/protoimpl
google.golang.org/protobuf/types/descriptorpb
google.golang.org/protobuf/types/known/timestamppb
github.com/golang/protobuf/ptypes/timestamp
google.golang.org/protobuf/reflect/protodesc
github.com/golang/protobuf/proto
github.com/prometheus/client_model/go
github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/prometheus/client_golang/prometheus/internal
golang.org/x/oauth2/internal
github.com/go-chi/chi/v5
expvar
golang.org/x/net/trace
github.com/prometheus/common/expfmt
net/http/pprof
golang.org/x/net/http2
golang.org/x/oauth2
golang.org/x/oauth2/clientcredentials
github.com/go-chi/chi/v5/middleware
github.com/google/go-github/v53/github
github.com/prometheus/client_golang/prometheus
github.com/promhippie/github_exporter/pkg/middleware
github.com/prometheus/client_golang/prometheus/collectors
github.com/prometheus/client_golang/prometheus/promhttp
github.com/mwitkow/go-conntrack
github.com/promhippie/github_exporter/pkg/version
github.com/prometheus/common/config
github.com/prometheus/exporter-toolkit/web
github.com/bradleyfalzon/ghinstallation/v2
github.com/promhippie/github_exporter/pkg/exporter
github.com/promhippie/github_exporter/pkg/action
github.com/promhippie/github_exporter/pkg/command
github.com/promhippie/github_exporter/cmd/github_exporter
But thank you for the report :)
then, it passed, with these diffs