:: Synchronizing package databases... build-support-manual downloading... build-support downloading... core-staging downloading... extra-staging downloading... core-testing downloading... core downloading... extra-testing downloading... extra downloading... :: Starting full system upgrade... there is nothing to do ==> Building in chroot for [extra-staging-with-build-support] (i486)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-staging-with-build-support-i486/root] -> [build]...done ==> Making package: fulcio 1.3.1-2.0 (Sun Oct 27 08:24:35 2024) ==> Retrieving sources... -> Found fulcio-1.3.1.tar.gz ==> Validating source files with sha512sums... fulcio-1.3.1.tar.gz ... Passed ==> Validating source files with b2sums... fulcio-1.3.1.tar.gz ... Passed gpg: Warning: using insecure memory! ==> Appending keys from archlinux32.gpg... gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! ==> Updating trust database... gpg: Warning: using insecure memory! gpg: next trustdb check due at 2024-11-18 ==> Making package: fulcio 1.3.1-2.0 (Sun Oct 27 08:24:44 2024) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... :: There are 2 providers available for go: :: Repository core-staging 1) gcc-go :: Repository core 2) gcc-go Enter a number (default=1): resolving dependencies... looking for conflicting packages... Packages (5) perl-error-0.17029-7.0 perl-mailtools-2.21-9.0 perl-timedate-2.33-7.0 gcc-go-14.2.1+r134+gab884fffe3fc-1.0 git-2.47.0-1.0 Total Installed Size: 147.29 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing gcc-go... installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git tk: gitk and git gui openssh: ssh transport and crypto perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] :: Running post-transaction hooks... (1/5) Creating system user accounts... Creating group 'git' with GID 972. Creating user 'git' (git daemon user) with UID 972 and GID 972. (2/5) Reloading system manager configuration... Skipped: Current root is not booted. (3/5) Arming ConditionNeedsUpdate... (4/5) Warn about old perl modules (5/5) Updating the info directory file... ==> Retrieving sources... -> Found fulcio-1.3.1.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Extracting fulcio-1.3.1.tar.gz with bsdtar ==> Starting build()... go: downloading chainguard.dev/go-grpc-kit v0.16.0 go: downloading github.com/ThalesIgnite/crypto11 v1.2.5 go: downloading github.com/goadesign/goa v2.2.5+incompatible go: downloading github.com/google/certificate-transparency-go v1.1.5 go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 go: downloading github.com/grpc-ecosystem/go-grpc-prometheus v1.2.1-0.20210315223345-82c243799c99 go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2 go: downloading github.com/prometheus/client_golang v1.15.0 go: downloading github.com/rs/cors v1.9.0 go: downloading github.com/sigstore/sigstore v1.6.3 go: downloading github.com/spf13/cobra v1.7.0 go: downloading github.com/spf13/pflag v1.0.5 go: downloading github.com/spf13/viper v1.15.0 go: downloading go.uber.org/zap v1.24.0 go: downloading google.golang.org/grpc v1.54.0 go: downloading google.golang.org/protobuf v1.30.0 go: downloading sigs.k8s.io/release-utils v0.7.3 go: downloading github.com/google/tink/go v1.7.0 go: downloading cloud.google.com/go/security v1.14.0 go: downloading cloud.google.com/go v0.110.0 go: downloading gopkg.in/yaml.v3 v3.0.1 go: downloading github.com/fsnotify/fsnotify v1.6.0 go: downloading go.step.sm/crypto v0.29.3 go: downloading google.golang.org/api v0.120.0 go: downloading github.com/golang/protobuf v1.5.3 go: downloading github.com/coreos/go-oidc/v3 v3.5.0 go: downloading github.com/hashicorp/golang-lru v0.5.4 go: downloading github.com/spiffe/go-spiffe/v2 v2.1.4 go: downloading google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 go: downloading github.com/google/go-cmp v0.5.9 go: downloading github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d go: downloading github.com/PaesslerAG/jsonpath v0.1.1 go: downloading github.com/prometheus/client_model v0.3.0 go: downloading github.com/prometheus/common v0.42.0 go: downloading golang.org/x/net v0.9.0 go: downloading github.com/miekg/pkcs11 v1.1.1 go: downloading github.com/pkg/errors v0.9.1 go: downloading github.com/thales-e-security/pool v0.0.2 go: downloading goa.design/goa v2.2.5+incompatible go: downloading k8s.io/klog/v2 v2.90.1 go: downloading github.com/beorn7/perks v1.0.1 go: downloading github.com/cespare/xxhash/v2 v2.2.0 go: downloading github.com/prometheus/procfs v0.9.0 go: downloading github.com/letsencrypt/boulder v0.0.0-20221109233200-85aa52084eaf go: downloading github.com/theupdateframework/go-tuf v0.5.2 go: downloading golang.org/x/term v0.7.0 go: downloading github.com/mitchellh/mapstructure v1.5.0 go: downloading github.com/spf13/afero v1.9.3 go: downloading github.com/spf13/cast v1.5.0 go: downloading github.com/spf13/jwalterweatherman v1.1.0 go: downloading go.uber.org/atomic v1.10.0 go: downloading go.uber.org/multierr v1.11.0 go: downloading github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be go: downloading golang.org/x/crypto v0.8.0 go: downloading cloud.google.com/go/iam v0.13.0 go: downloading cloud.google.com/go/longrunning v0.4.1 go: downloading github.com/googleapis/gax-go/v2 v2.8.0 go: downloading github.com/aws/aws-sdk-go-v2 v1.17.8 go: downloading github.com/aws/aws-sdk-go-v2/config v1.18.21 go: downloading github.com/aws/aws-sdk-go-v2/service/kms v1.20.11 go: downloading github.com/jellydator/ttlcache/v3 v3.0.1 go: downloading github.com/Azure/azure-sdk-for-go v68.0.0+incompatible go: downloading github.com/Azure/go-autorest/autorest v0.11.28 go: downloading github.com/Azure/go-autorest v14.2.0+incompatible go: downloading github.com/Azure/go-autorest/autorest/to v0.4.0 go: downloading github.com/go-jose/go-jose/v3 v3.0.0 go: downloading cloud.google.com/go/kms v1.10.1 go: downloading github.com/hashicorp/vault/api v1.9.1 go: downloading github.com/mitchellh/go-homedir v1.1.0 go: downloading github.com/segmentio/ksuid v1.0.4 go: downloading github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 go: downloading golang.org/x/oauth2 v0.7.0 go: downloading github.com/google/go-containerregistry v0.14.0 go: downloading golang.org/x/sys v0.7.0 go: downloading github.com/aws/aws-sdk-go v1.44.248 go: downloading github.com/PaesslerAG/gval v1.0.0 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4 go: downloading go.opentelemetry.io/otel v1.15.0 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.15.0 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.15.0 go: downloading go.opentelemetry.io/otel/sdk v1.15.0 go: downloading knative.dev/pkg v0.0.0-20230404101938-ee73c9355c9d go: downloading github.com/go-logr/logr v1.2.4 go: downloading github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 go: downloading golang.org/x/text v0.9.0 go: downloading github.com/subosito/gotenv v1.4.2 go: downloading github.com/hashicorp/hcl v1.0.0 go: downloading gopkg.in/ini.v1 v1.67.0 go: downloading github.com/magiconair/properties v1.8.7 go: downloading github.com/pelletier/go-toml/v2 v2.0.6 go: downloading cloud.google.com/go/compute/metadata v0.2.3 go: downloading cloud.google.com/go/compute v1.19.0 go: downloading go.opencensus.io v0.24.0 go: downloading github.com/aws/smithy-go v1.13.5 go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.13.20 go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.2 go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.3.33 go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.12.8 go: downloading github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.8 go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.18.9 go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.32 go: downloading golang.org/x/sync v0.1.0 go: downloading github.com/Azure/go-autorest/autorest/azure/auth v0.5.12 go: downloading github.com/Azure/go-autorest/autorest/date v0.3.0 go: downloading github.com/Azure/go-autorest/autorest/validation v0.3.1 go: downloading github.com/Azure/go-autorest/tracing v0.6.0 go: downloading github.com/Azure/go-autorest/autorest/adal v0.9.21 go: downloading github.com/Azure/go-autorest/logger v0.2.1 go: downloading github.com/cenkalti/backoff/v3 v3.2.2 go: downloading github.com/hashicorp/errwrap v1.1.0 go: downloading github.com/hashicorp/go-cleanhttp v0.5.2 go: downloading github.com/hashicorp/go-multierror v1.1.1 go: downloading github.com/hashicorp/go-retryablehttp v0.7.1 go: downloading github.com/hashicorp/go-rootcerts v1.0.2 go: downloading github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 go: downloading github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 go: downloading golang.org/x/time v0.3.0 go: downloading gopkg.in/square/go-jose.v2 v2.6.0 go: downloading github.com/opencontainers/go-digest v1.0.0 go: downloading filippo.io/edwards25519 v1.0.0 go: downloading github.com/google/s2a-go v0.1.2 go: downloading go.opentelemetry.io/otel/trace v1.15.0 go: downloading go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.15.0 go: downloading go.opentelemetry.io/proto/otlp v0.19.0 go: downloading github.com/blendle/zapdriver v1.3.1 go: downloading k8s.io/api v0.26.3 go: downloading k8s.io/apimachinery v0.26.3 go: downloading github.com/googleapis/enterprise-certificate-proxy v0.2.3 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.26 go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.26 go: downloading github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 go: downloading github.com/dimchansky/utfbom v1.1.1 go: downloading github.com/golang-jwt/jwt/v4 v4.5.0 go: downloading github.com/hashicorp/go-sockaddr v1.0.2 go: downloading github.com/ryanuber/go-glob v1.0.0 go: downloading github.com/jmespath/go-jmespath v0.4.0 go: downloading github.com/google/uuid v1.3.0 go: downloading github.com/go-logr/stdr v1.2.2 go: downloading github.com/cenkalti/backoff/v4 v4.2.1 go: downloading github.com/gogo/protobuf v1.3.2 go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da go: downloading google.golang.org/appengine v1.6.7 go: downloading gopkg.in/inf.v0 v0.9.1 go: downloading github.com/google/gofuzz v1.2.0 go: downloading sigs.k8s.io/structured-merge-diff/v4 v4.2.3 go: downloading k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 go: downloading sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd go: downloading github.com/json-iterator/go v1.1.12 go: downloading gopkg.in/yaml.v2 v2.4.0 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd go: downloading github.com/modern-go/reflect2 v1.0.2 go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags # google.golang.org/grpc/internal/channelz /build/go/pkg/mod/google.golang.org/grpc@v1.54.0/internal/channelz/types_linux.go:45:82: error: reference to undefined identifier ‘syscall.SO_SNDTIMEO’ 45 | if v, err := unix.GetsockoptTimeval(int(fd), syscall.SOL_SOCKET, syscall.SO_SNDTIMEO); err == nil { | ^ # github.com/cenkalti/backoff/v4 /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:10:26: error: expected ‘]’ 10 | type OperationWithData[T any] func() (T, error) | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:16:53: error: expected ‘;’ or newline after top level declaration 16 | func (o Operation) withEmptyData() OperationWithData[struct{}] { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:19:9: error: expected declaration 19 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:20:1: error: expected declaration 20 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:42:19: error: expected ‘(’ 42 | func RetryWithData[T any](o OperationWithData[T], b BackOff) (T, error) { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:42:22: error: expected ‘]’ 42 | func RetryWithData[T any](o OperationWithData[T], b BackOff) (T, error) { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:42:22: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:44:1: error: expected declaration 44 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:53:25: error: expected ‘(’ 53 | func RetryNotifyWithData[T any](operation OperationWithData[T], b BackOff, notify Notify) (T, error) { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:53:28: error: expected ‘]’ 53 | func RetryNotifyWithData[T any](operation OperationWithData[T], b BackOff, notify Notify) (T, error) { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:53:28: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:55:1: error: expected declaration 55 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:66:33: error: expected ‘(’ 66 | func RetryNotifyWithTimerAndData[T any](operation OperationWithData[T], b BackOff, notify Notify, t Timer) (T, error) { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:66:36: error: expected ‘]’ 66 | func RetryNotifyWithTimerAndData[T any](operation OperationWithData[T], b BackOff, notify Notify, t Timer) (T, error) { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:66:36: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:68:1: error: expected declaration 68 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:70:19: error: expected ‘(’ 70 | func doRetryNotify[T any](operation OperationWithData[T], b BackOff, notify Notify, t Timer) (T, error) { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:70:22: error: expected ‘]’ 70 | func doRetryNotify[T any](operation OperationWithData[T], b BackOff, notify Notify, t Timer) (T, error) { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:70:22: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:73:17: error: expected declaration 73 | next time.Duration | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:74:17: error: expected declaration 74 | res T | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:75:9: error: expected declaration 75 | ) | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:76:9: error: expected declaration 76 | if t == nil { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:78:9: error: expected declaration 78 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:80:9: error: expected declaration 80 | defer func() { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:82:9: error: expected declaration 82 | }() | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:84:9: error: expected declaration 84 | ctx := getContext(b) | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:86:9: error: expected declaration 86 | b.Reset() | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:87:9: error: expected declaration 87 | for { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:89:17: error: expected declaration 89 | if err == nil { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:91:17: error: expected declaration 91 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:94:17: error: expected declaration 94 | if errors.As(err, &permanent) { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:96:17: error: expected declaration 96 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:98:17: error: expected declaration 98 | if next = b.NextBackOff(); next == Stop { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:98:44: error: expected declaration 98 | if next = b.NextBackOff(); next == Stop { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:99:47: error: expected declaration 99 | if cerr := ctx.Err(); cerr != nil { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:101:25: error: expected declaration 101 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:103:25: error: expected declaration 103 | return res, err | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:104:17: error: expected declaration 104 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:106:17: error: expected declaration 106 | if notify != nil { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:108:17: error: expected declaration 108 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:110:17: error: expected declaration 110 | t.Start(next) | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:112:17: error: expected declaration 112 | select { | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:115:17: error: expected declaration 115 | case <-t.C(): | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:117:9: error: expected declaration 117 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:118:1: error: expected declaration 118 | } | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:61:19: error: reference to undefined name ‘doRetryNotify’ 61 | _, err := doRetryNotify(operation.withEmptyData(), b, notify, t) | ^ /build/go/pkg/mod/github.com/cenkalti/backoff/v4@v4.2.1/retry.go:61:42: error: reference to undefined field or method ‘withEmptyData’ 61 | _, err := doRetryNotify(operation.withEmptyData(), b, notify, t) | ^ # go.opentelemetry.io/otel/sdk/trace /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:78:24: error: reference to undefined identifier ‘atomic.Pointer’ 78 | spanProcessors atomic.Pointer[spanProcessorStates] | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:78:38: error: expected ‘;’ or ‘}’ or newline 78 | spanProcessors atomic.Pointer[spanProcessorStates] | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:80:20: error: reference to undefined identifier ‘atomic.Bool’ 80 | isShutdown atomic.Bool | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:115:17: error: reference to undefined name ‘namedTracer’ 115 | namedTracer: make(map[instrumentation.Scope]*tracer), | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:116:17: error: reference to undefined name ‘sampler’ 116 | sampler: o.sampler, | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:117:17: error: reference to undefined name ‘idGenerator’ 117 | idGenerator: o.idGenerator, | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:118:17: error: reference to undefined name ‘spanLimits’ 118 | spanLimits: o.spanLimits, | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:162:17: error: invalid tuple definition 162 | t, ok := p.namedTracer[is] | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:165:33: error: reference to undefined name ‘provider’ 165 | provider: p, | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:166:33: error: reference to undefined name ‘instrumentationScope’ 166 | instrumentationScope: is, | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:90:5: error: incompatible type in initialization (type has no methods) 90 | var _ trace.TracerProvider = &TracerProvider{} | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:108:9: error: range clause must have array, slice, string, map, or channel type 108 | for _, opt := range opts { | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:129:9: error: return with value in function with no return type 129 | return tp | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:162:17: error: expected map index on right hand side 162 | t, ok := p.namedTracer[is] | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:198:33: error: invalid use of ‘...’ with non-slice/non-string 198 | newSPS = append(newSPS, current...) | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:255:9: error: range clause must have array, slice, string, map, or channel type 255 | for _, sps := range spss { | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:285:9: error: range clause must have array, slice, string, map, or channel type 285 | for _, sps := range p.getSpanProcessors() { | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:310:16: error: expected pointer 310 | return *(p.spanProcessors.Load()) | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/span.go:418:9: error: range clause must have array, slice, string, map, or channel type 418 | for _, sp := range sps { | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/tracer.go:30:5: error: incompatible type in initialization (type has no methods) 30 | var _ trace.Tracer = &tracer{} | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/tracer.go:55:17: error: range clause must have array, slice, string, map, or channel type 55 | for _, sp := range sps { | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:197:60: error: non-integer cap argument to make 197 | newSPS := make(spanProcessorStates, 0, len(current)+1) | ^ /build/go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.15.0/trace/provider.go:219:43: error: non-integer len argument to make 219 | spss := make(spanProcessorStates, len(old)) | ^ (null):0: confused by earlier errors, bailing out note: module requires Go 1.19 # go.uber.org/atomic /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:28:16: error: expected ‘]’ 28 | type Pointer[T any] struct { | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:30:9: error: expected declaration 30 | p UnsafePointer | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:31:1: error: expected declaration 31 | } | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:34:16: error: expected ‘(’ 34 | func NewPointer[T any](v *T) *Pointer[T] { | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:34:19: error: expected ‘]’ 34 | func NewPointer[T any](v *T) *Pointer[T] { | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:34:19: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:36:9: error: expected declaration 36 | if v != nil { | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:38:9: error: expected declaration 38 | } | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:39:9: error: expected declaration 39 | return &p | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:40:1: error: expected declaration 40 | } | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:43:17: error: expected ‘)’ 43 | func (p *Pointer[T]) Load() *T { | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:43:17: error: expected function name /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:43:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:45:1: error: expected declaration 45 | } | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:48:17: error: expected ‘)’ 48 | func (p *Pointer[T]) Store(val *T) { | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:48:17: error: expected function name /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:48:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:50:1: error: expected declaration 50 | } | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:53:17: error: expected ‘)’ 53 | func (p *Pointer[T]) Swap(val *T) (old *T) { | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:53:17: error: expected function name /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:53:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:55:1: error: expected declaration 55 | } | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:58:17: error: expected ‘)’ 58 | func (p *Pointer[T]) CompareAndSwap(old, new *T) (swapped bool) { | ^ /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:58:17: error: expected function name /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:58:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/go.uber.org/atomic@v1.10.0/pointer_go118.go:60:1: error: expected declaration 60 | } | ^ # go.uber.org/multierr /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:209:20: error: reference to undefined identifier ‘atomic.Bool’ 209 | copyNeeded atomic.Bool | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:448:44: error: unexpected reference to package 448 | return &multiError{errors: errs} | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:451:44: error: unexpected reference to package 451 | return &multiError{errors: []error{left, right}} | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:259:9: error: range clause must have array, slice, string, map, or channel type 259 | for _, item := range merr.errors { | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:271:9: error: range clause must have array, slice, string, map, or channel type 271 | for _, item := range merr.errors { | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:362:32: error: incompatible type for return value 1 (type has no methods) 362 | return &multiError{errors: out} | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:373:63: error: invalid use of ‘...’ with non-slice/non-string 373 | nonNilErrs = append(nonNilErrs, nested.errors...) | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:379:16: error: incompatible type for return value 1 (type has no methods) 379 | return &multiError{errors: nonNilErrs} | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:448:32: error: incompatible type for return value 1 (type has no methods) 448 | return &multiError{errors: errs} | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error.go:451:32: error: incompatible type for return value 1 (type has no methods) 451 | return &multiError{errors: []error{left, right}} | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error_pre_go120.go:40:9: error: range clause must have array, slice, string, map, or channel type 40 | for _, err := range merr.Errors() { | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error_pre_go120.go:53:9: error: range clause must have array, slice, string, map, or channel type 53 | for _, err := range merr.Errors() { | ^ /build/go/pkg/mod/go.uber.org/multierr@v1.11.0/error_pre_go120.go:78:41: error: invalid use of ‘...’ with non-slice/non-string 78 | return append(([]error)(nil), eg.Errors()...) | ^ note: module requires Go 1.19 # k8s.io/apimachinery/pkg/util/sets /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:34:16: error: expected ‘(’ 34 | func ByteKeySet[T any](theMap map[byte]T) Byte { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:34:19: error: expected ‘]’ 34 | func ByteKeySet[T any](theMap map[byte]T) Byte { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:34:19: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:36:1: error: expected declaration 36 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:34:15: error: expected ‘(’ 34 | func IntKeySet[T any](theMap map[int]T) Int { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:34:18: error: expected ‘]’ 34 | func IntKeySet[T any](theMap map[int]T) Int { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:34:18: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:36:1: error: expected declaration 36 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:34:17: error: expected ‘(’ 34 | func Int32KeySet[T any](theMap map[int32]T) Int32 { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:34:20: error: expected ‘]’ 34 | func Int32KeySet[T any](theMap map[int32]T) Int32 { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:34:20: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:36:1: error: expected declaration 36 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:34:17: error: expected ‘(’ 34 | func Int64KeySet[T any](theMap map[int64]T) Int64 { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:34:20: error: expected ‘]’ 34 | func Int64KeySet[T any](theMap map[int64]T) Int64 { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:34:20: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:36:1: error: expected declaration 36 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/ordered.go:24:9: error: expected signature or type name 24 | integer | float | ~string | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/ordered.go:24:27: error: invalid character 0x7e in input file 24 | integer | float | ~string | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/ordered.go:31:9: error: expected signature or type name 31 | signed | unsigned | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/ordered.go:38:9: error: invalid character 0x7e in input file 38 | ~float32 | ~float64 | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/ordered.go:45:9: error: invalid character 0x7e in input file 45 | ~int | ~int8 | ~int16 | ~int32 | ~int64 | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/ordered.go:52:9: error: invalid character 0x7e in input file 52 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:24:12: error: expected ‘]’ 24 | type Set[T comparable] map[T]Empty | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:27:10: error: expected ‘(’ 27 | func cast[T comparable](s map[T]Empty) Set[T] { return s } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:27:13: error: expected ‘]’ 27 | func cast[T comparable](s map[T]Empty) Set[T] { return s } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:27:13: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:31:9: error: expected ‘(’ 31 | func New[T comparable](items ...T) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:31:12: error: expected ‘]’ 31 | func New[T comparable](items ...T) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:31:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:33:9: error: expected declaration 33 | ss.Insert(items...) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:34:9: error: expected declaration 34 | return ss | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:35:1: error: expected declaration 35 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:39:12: error: expected ‘(’ 39 | func KeySet[T comparable, V any](theMap map[T]V) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:39:15: error: expected ‘]’ 39 | func KeySet[T comparable, V any](theMap map[T]V) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:39:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:41:9: error: expected declaration 41 | for keyValue := range theMap { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:43:9: error: expected declaration 43 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:44:9: error: expected declaration 44 | return ret | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:45:1: error: expected declaration 45 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:48:12: error: expected ‘)’ 48 | func (s Set[T]) Insert(items ...T) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:48:12: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:48:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:51:9: error: expected declaration 51 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:52:9: error: expected declaration 52 | return s | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:53:1: error: expected declaration 53 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:55:12: error: expected ‘(’ 55 | func Insert[T comparable](set Set[T], items ...T) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:55:15: error: expected ‘]’ 55 | func Insert[T comparable](set Set[T], items ...T) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:55:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:57:1: error: expected declaration 57 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:60:12: error: expected ‘)’ 60 | func (s Set[T]) Delete(items ...T) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:60:12: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:60:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:63:9: error: expected declaration 63 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:64:9: error: expected declaration 64 | return s | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:65:1: error: expected declaration 65 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:68:12: error: expected ‘)’ 68 | func (s Set[T]) Has(item T) bool { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:68:12: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:68:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:70:9: error: expected declaration 70 | return contained | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:71:1: error: expected declaration 71 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:74:12: error: expected ‘)’ 74 | func (s Set[T]) HasAll(items ...T) bool { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:74:12: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:74:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:78:17: error: expected declaration 78 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:79:9: error: expected declaration 79 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:80:9: error: expected declaration 80 | return true | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:81:1: error: expected declaration 81 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:84:12: error: expected ‘)’ 84 | func (s Set[T]) HasAny(items ...T) bool { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:84:12: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:84:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:88:17: error: expected declaration 88 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:89:9: error: expected declaration 89 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:90:9: error: expected declaration 90 | return false | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:91:1: error: expected declaration 91 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:94:12: error: expected ‘)’ 94 | func (s Set[T]) Clone() Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:94:12: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:94:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:96:9: error: expected declaration 96 | for key := range s { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:98:9: error: expected declaration 98 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:99:9: error: expected declaration 99 | return result | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:100:1: error: expected declaration 100 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:108:13: error: expected ‘)’ 108 | func (s1 Set[T]) Difference(s2 Set[T]) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:108:13: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:108:13: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:110:9: error: expected declaration 110 | for key := range s1 { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:113:17: error: expected declaration 113 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:114:9: error: expected declaration 114 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:115:9: error: expected declaration 115 | return result | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:116:1: error: expected declaration 116 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:124:13: error: expected ‘)’ 124 | func (s1 Set[T]) SymmetricDifference(s2 Set[T]) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:124:13: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:124:13: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:126:1: error: expected declaration 126 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:134:13: error: expected ‘)’ 134 | func (s1 Set[T]) Union(s2 Set[T]) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:134:13: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:134:13: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:136:9: error: expected declaration 136 | for key := range s2 { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:138:9: error: expected declaration 138 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:139:9: error: expected declaration 139 | return result | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:140:1: error: expected declaration 140 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:147:13: error: expected ‘)’ 147 | func (s1 Set[T]) Intersection(s2 Set[T]) Set[T] { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:147:13: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:147:13: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:149:9: error: expected declaration 149 | result := New[T]() | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:150:9: error: expected declaration 150 | if s1.Len() < s2.Len() { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:152:17: error: expected declaration 152 | other = s2 | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:153:9: error: expected declaration 153 | } else { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:155:17: error: expected declaration 155 | other = s1 | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:156:9: error: expected declaration 156 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:157:9: error: expected declaration 157 | for key := range walk { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:160:17: error: expected declaration 160 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:161:9: error: expected declaration 161 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:162:9: error: expected declaration 162 | return result | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:163:1: error: expected declaration 163 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:166:13: error: expected ‘)’ 166 | func (s1 Set[T]) IsSuperset(s2 Set[T]) bool { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:166:13: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:166:13: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:170:17: error: expected declaration 170 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:171:9: error: expected declaration 171 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:172:9: error: expected declaration 172 | return true | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:173:1: error: expected declaration 173 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:178:13: error: expected ‘)’ 178 | func (s1 Set[T]) Equal(s2 Set[T]) bool { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:178:13: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:178:13: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:180:1: error: expected declaration 180 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:182:31: error: expected ‘]’ 182 | type sortableSliceOfGeneric[T ordered] []T | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:184:31: error: expected ‘)’ 184 | func (g sortableSliceOfGeneric[T]) Len() int { return len(g) } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:184:31: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:184:31: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:185:31: error: expected ‘)’ 185 | func (g sortableSliceOfGeneric[T]) Less(i, j int) bool { return less[T](g[i], g[j]) } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:185:31: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:185:31: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:186:31: error: expected ‘)’ 186 | func (g sortableSliceOfGeneric[T]) Swap(i, j int) { g[i], g[j] = g[j], g[i] } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:186:31: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:186:31: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:192:10: error: expected ‘(’ 192 | func List[T ordered](s Set[T]) []T { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:192:13: error: expected ‘]’ 192 | func List[T ordered](s Set[T]) []T { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:192:13: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:194:9: error: expected declaration 194 | for key := range s { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:196:9: error: expected declaration 196 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:197:9: error: expected declaration 197 | sort.Sort(res) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:198:9: error: expected declaration 198 | return res | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:199:1: error: expected declaration 199 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:202:12: error: expected ‘)’ 202 | func (s Set[T]) UnsortedList() []T { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:202:12: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:202:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:204:9: error: expected declaration 204 | for key := range s { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:206:9: error: expected declaration 206 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:207:9: error: expected declaration 207 | return res | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:208:1: error: expected declaration 208 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:211:12: error: expected ‘)’ 211 | func (s Set[T]) PopAny() (T, bool) { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:211:12: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:211:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:214:17: error: expected declaration 214 | return key, true | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:215:9: error: expected declaration 215 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:217:9: error: expected declaration 217 | return zeroValue, false | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:218:1: error: expected declaration 218 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:221:12: error: expected ‘)’ 221 | func (s Set[T]) Len() int { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:221:12: error: expected function name /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:221:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:223:1: error: expected declaration 223 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:225:10: error: expected ‘(’ 225 | func less[T ordered](lhs, rhs T) bool { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:225:13: error: expected ‘]’ 225 | func less[T ordered](lhs, rhs T) bool { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:225:13: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/set.go:227:1: error: expected declaration 227 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/string.go:34:18: error: expected ‘(’ 34 | func StringKeySet[T any](theMap map[string]T) String { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/string.go:34:21: error: expected ‘]’ 34 | func StringKeySet[T any](theMap map[string]T) String { | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/string.go:34:21: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/string.go:36:1: error: expected declaration 36 | } | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:29:21: error: reference to undefined name ‘New’ 29 | return Byte(New[byte](items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:40:21: error: reference to undefined name ‘cast’ 40 | return Byte(cast(s).Insert(items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:45:21: error: reference to undefined name ‘cast’ 45 | return Byte(cast(s).Delete(items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:50:16: error: reference to undefined name ‘cast’ 50 | return cast(s).Has(item) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:55:16: error: reference to undefined name ‘cast’ 55 | return cast(s).HasAll(items...) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:60:16: error: reference to undefined name ‘cast’ 60 | return cast(s).HasAny(items...) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:65:21: error: reference to undefined name ‘cast’ 65 | return Byte(cast(s).Clone()) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:75:21: error: reference to undefined name ‘cast’ 75 | return Byte(cast(s1).Difference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:75:41: error: reference to undefined name ‘cast’ 75 | return Byte(cast(s1).Difference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:85:21: error: reference to undefined name ‘cast’ 85 | return Byte(cast(s1).SymmetricDifference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:85:50: error: reference to undefined name ‘cast’ 85 | return Byte(cast(s1).SymmetricDifference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:95:21: error: reference to undefined name ‘cast’ 95 | return Byte(cast(s1).Union(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:95:36: error: reference to undefined name ‘cast’ 95 | return Byte(cast(s1).Union(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:104:21: error: reference to undefined name ‘cast’ 104 | return Byte(cast(s1).Intersection(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:104:43: error: reference to undefined name ‘cast’ 104 | return Byte(cast(s1).Intersection(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:109:16: error: reference to undefined name ‘cast’ 109 | return cast(s1).IsSuperset(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:109:36: error: reference to undefined name ‘cast’ 109 | return cast(s1).IsSuperset(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:116:16: error: reference to undefined name ‘cast’ 116 | return cast(s1).Equal(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:116:31: error: reference to undefined name ‘cast’ 116 | return cast(s1).Equal(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:121:16: error: reference to undefined name ‘List’ 121 | return List(cast(s)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:121:21: error: reference to undefined name ‘cast’ 121 | return List(cast(s)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:126:16: error: reference to undefined name ‘cast’ 126 | return cast(s).UnsortedList() | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:131:16: error: reference to undefined name ‘cast’ 131 | return cast(s).PopAny() | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:29:20: error: reference to undefined name ‘New’ 29 | return Int(New[int](items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:40:20: error: reference to undefined name ‘cast’ 40 | return Int(cast(s).Insert(items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:45:20: error: reference to undefined name ‘cast’ 45 | return Int(cast(s).Delete(items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:50:16: error: reference to undefined name ‘cast’ 50 | return cast(s).Has(item) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:55:16: error: reference to undefined name ‘cast’ 55 | return cast(s).HasAll(items...) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:60:16: error: reference to undefined name ‘cast’ 60 | return cast(s).HasAny(items...) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:65:20: error: reference to undefined name ‘cast’ 65 | return Int(cast(s).Clone()) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:75:20: error: reference to undefined name ‘cast’ 75 | return Int(cast(s1).Difference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:75:40: error: reference to undefined name ‘cast’ 75 | return Int(cast(s1).Difference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:85:20: error: reference to undefined name ‘cast’ 85 | return Int(cast(s1).SymmetricDifference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:85:49: error: reference to undefined name ‘cast’ 85 | return Int(cast(s1).SymmetricDifference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:95:20: error: reference to undefined name ‘cast’ 95 | return Int(cast(s1).Union(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:95:35: error: reference to undefined name ‘cast’ 95 | return Int(cast(s1).Union(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:104:20: error: reference to undefined name ‘cast’ 104 | return Int(cast(s1).Intersection(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:104:42: error: reference to undefined name ‘cast’ 104 | return Int(cast(s1).Intersection(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:109:16: error: reference to undefined name ‘cast’ 109 | return cast(s1).IsSuperset(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:109:36: error: reference to undefined name ‘cast’ 109 | return cast(s1).IsSuperset(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:116:16: error: reference to undefined name ‘cast’ 116 | return cast(s1).Equal(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:116:31: error: reference to undefined name ‘cast’ 116 | return cast(s1).Equal(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:121:16: error: reference to undefined name ‘List’ 121 | return List(cast(s)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:121:21: error: reference to undefined name ‘cast’ 121 | return List(cast(s)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:126:16: error: reference to undefined name ‘cast’ 126 | return cast(s).UnsortedList() | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int.go:131:16: error: reference to undefined name ‘cast’ 131 | return cast(s).PopAny() | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:29:22: error: reference to undefined name ‘New’ 29 | return Int32(New[int32](items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:40:22: error: reference to undefined name ‘cast’ 40 | return Int32(cast(s).Insert(items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:45:22: error: reference to undefined name ‘cast’ 45 | return Int32(cast(s).Delete(items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:50:16: error: reference to undefined name ‘cast’ 50 | return cast(s).Has(item) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:55:16: error: reference to undefined name ‘cast’ 55 | return cast(s).HasAll(items...) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:60:16: error: reference to undefined name ‘cast’ 60 | return cast(s).HasAny(items...) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:65:22: error: reference to undefined name ‘cast’ 65 | return Int32(cast(s).Clone()) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:75:22: error: reference to undefined name ‘cast’ 75 | return Int32(cast(s1).Difference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:75:42: error: reference to undefined name ‘cast’ 75 | return Int32(cast(s1).Difference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:85:22: error: reference to undefined name ‘cast’ 85 | return Int32(cast(s1).SymmetricDifference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:85:51: error: reference to undefined name ‘cast’ 85 | return Int32(cast(s1).SymmetricDifference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:95:22: error: reference to undefined name ‘cast’ 95 | return Int32(cast(s1).Union(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:95:37: error: reference to undefined name ‘cast’ 95 | return Int32(cast(s1).Union(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:104:22: error: reference to undefined name ‘cast’ 104 | return Int32(cast(s1).Intersection(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:104:44: error: reference to undefined name ‘cast’ 104 | return Int32(cast(s1).Intersection(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:109:16: error: reference to undefined name ‘cast’ 109 | return cast(s1).IsSuperset(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:109:36: error: reference to undefined name ‘cast’ 109 | return cast(s1).IsSuperset(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:116:16: error: reference to undefined name ‘cast’ 116 | return cast(s1).Equal(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:116:31: error: reference to undefined name ‘cast’ 116 | return cast(s1).Equal(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:121:16: error: reference to undefined name ‘List’ 121 | return List(cast(s)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:121:21: error: reference to undefined name ‘cast’ 121 | return List(cast(s)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:126:16: error: reference to undefined name ‘cast’ 126 | return cast(s).UnsortedList() | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int32.go:131:16: error: reference to undefined name ‘cast’ 131 | return cast(s).PopAny() | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:29:22: error: reference to undefined name ‘New’ 29 | return Int64(New[int64](items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:40:22: error: reference to undefined name ‘cast’ 40 | return Int64(cast(s).Insert(items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:45:22: error: reference to undefined name ‘cast’ 45 | return Int64(cast(s).Delete(items...)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:50:16: error: reference to undefined name ‘cast’ 50 | return cast(s).Has(item) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:55:16: error: reference to undefined name ‘cast’ 55 | return cast(s).HasAll(items...) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:60:16: error: reference to undefined name ‘cast’ 60 | return cast(s).HasAny(items...) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:65:22: error: reference to undefined name ‘cast’ 65 | return Int64(cast(s).Clone()) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:75:22: error: reference to undefined name ‘cast’ 75 | return Int64(cast(s1).Difference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:75:42: error: reference to undefined name ‘cast’ 75 | return Int64(cast(s1).Difference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:85:22: error: reference to undefined name ‘cast’ 85 | return Int64(cast(s1).SymmetricDifference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:85:51: error: reference to undefined name ‘cast’ 85 | return Int64(cast(s1).SymmetricDifference(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:95:22: error: reference to undefined name ‘cast’ 95 | return Int64(cast(s1).Union(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:95:37: error: reference to undefined name ‘cast’ 95 | return Int64(cast(s1).Union(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:104:22: error: reference to undefined name ‘cast’ 104 | return Int64(cast(s1).Intersection(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:104:44: error: reference to undefined name ‘cast’ 104 | return Int64(cast(s1).Intersection(cast(s2))) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:109:16: error: reference to undefined name ‘cast’ 109 | return cast(s1).IsSuperset(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:109:36: error: reference to undefined name ‘cast’ 109 | return cast(s1).IsSuperset(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:116:16: error: reference to undefined name ‘cast’ 116 | return cast(s1).Equal(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:116:31: error: reference to undefined name ‘cast’ 116 | return cast(s1).Equal(cast(s2)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:121:16: error: reference to undefined name ‘List’ 121 | return List(cast(s)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:121:21: error: reference to undefined name ‘cast’ 121 | return List(cast(s)) | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:126:16: error: reference to undefined name ‘cast’ 126 | return cast(s).UnsortedList() | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/int64.go:131:16: error: reference to undefined name ‘cast’ 131 | return cast(s).PopAny() | ^ /build/go/pkg/mod/k8s.io/apimachinery@v0.26.3/pkg/util/sets/byte.go:34:17: error: use of undefined type ‘T’ 34 | func ByteKeySet[T any](theMap map[byte]T) Byte { | ^ (null):0: confused by earlier errors, bailing out note: module requires Go 1.19 # github.com/jellydator/ttlcache/v3 /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:26:14: error: expected ‘]’ 26 | type Cache[K comparable, V any] struct { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:29:17: error: expected declaration 29 | values map[K]*list.Element | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:34:17: error: expected declaration 34 | lru *list.List | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:35:17: error: expected declaration 35 | expQueue expirationQueue[K, V] | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:37:17: error: expected declaration 37 | timerCh chan time.Duration | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:38:9: error: expected declaration 38 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:40:9: error: expected declaration 40 | metricsMu sync.RWMutex | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:41:9: error: expected declaration 41 | metrics Metrics | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:43:9: error: expected declaration 43 | events struct { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:46:25: error: expected declaration 46 | nextID uint64 | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:47:25: error: expected declaration 47 | fns map[uint64]func(*Item[K, V]) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:48:17: error: expected declaration 48 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:49:17: error: expected declaration 49 | eviction struct { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:51:25: error: expected declaration 51 | nextID uint64 | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:52:25: error: expected declaration 52 | fns map[uint64]func(EvictionReason, *Item[K, V]) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:53:17: error: expected declaration 53 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:54:9: error: expected declaration 54 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:56:9: error: expected declaration 56 | stopCh chan struct{} | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:57:9: error: expected declaration 57 | options options[K, V] | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:58:1: error: expected declaration 58 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:61:9: error: expected ‘(’ 61 | func New[K comparable, V any](opts ...Option[K, V]) *Cache[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:61:12: error: expected ‘]’ 61 | func New[K comparable, V any](opts ...Option[K, V]) *Cache[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:61:12: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:65:9: error: expected declaration 65 | c.items.values = make(map[K]*list.Element) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:66:9: error: expected declaration 66 | c.items.lru = list.New() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:67:9: error: expected declaration 67 | c.items.expQueue = newExpirationQueue[K, V]() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:68:9: error: expected declaration 68 | c.items.timerCh = make(chan time.Duration, 1) // buffer is important | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:69:9: error: expected declaration 69 | c.events.insertion.fns = make(map[uint64]func(*Item[K, V])) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:70:9: error: expected declaration 70 | c.events.eviction.fns = make(map[uint64]func(EvictionReason, *Item[K, V])) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:72:9: error: expected declaration 72 | applyOptions(&c.options, opts...) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:74:9: error: expected declaration 74 | return c | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:75:1: error: expected declaration 75 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:80:15: error: expected ‘)’ 80 | func (c *Cache[K, V]) updateExpirations(fresh bool, elem *list.Element) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:80:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:80:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:83:9: error: expected declaration 83 | if !c.items.expQueue.isEmpty() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:85:9: error: expected declaration 85 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:87:9: error: expected declaration 87 | if fresh { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:89:9: error: expected declaration 89 | } else { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:91:9: error: expected declaration 91 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:93:9: error: expected declaration 93 | newExpiresAt := c.items.expQueue[0].Value.(*Item[K, V]).expiresAt | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:96:9: error: expected declaration 96 | if newExpiresAt.IsZero() || (!oldExpiresAt.IsZero() && !newExpiresAt.Before(oldExpiresAt)) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:98:9: error: expected declaration 98 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:100:9: error: expected declaration 100 | d := time.Until(newExpiresAt) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:108:9: error: expected declaration 108 | if len(c.items.timerCh) > 0 { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:116:25: error: expected declaration 116 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:117:17: error: expected declaration 117 | default: | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:119:9: error: expected declaration 119 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:124:9: error: expected declaration 124 | c.items.timerCh <- d | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:125:1: error: expected declaration 125 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:129:15: error: expected ‘)’ 129 | func (c *Cache[K, V]) set(key K, value V, ttl time.Duration) *Item[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:129:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:129:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:132:9: error: expected declaration 132 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:134:9: error: expected declaration 134 | elem := c.get(key, false) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:135:9: error: expected declaration 135 | if elem != nil { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:138:17: error: expected declaration 138 | item.update(value, ttl) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:139:17: error: expected declaration 139 | c.updateExpirations(false, elem) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:141:17: error: expected declaration 141 | return item | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:142:9: error: expected declaration 142 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:144:9: error: expected declaration 144 | if c.options.capacity != 0 && uint64(len(c.items.values)) >= c.options.capacity { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:147:9: error: expected declaration 147 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:150:9: error: expected declaration 150 | item := newItem(key, value, ttl) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:151:9: error: expected declaration 151 | elem = c.items.lru.PushFront(item) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:152:9: error: expected declaration 152 | c.items.values[key] = elem | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:153:9: error: expected declaration 153 | c.updateExpirations(true, elem) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:155:9: error: expected declaration 155 | c.metricsMu.Lock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:156:9: error: expected declaration 156 | c.metrics.Insertions++ | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:157:9: error: expected declaration 157 | c.metricsMu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:159:9: error: expected declaration 159 | c.events.insertion.mu.RLock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:160:9: error: expected declaration 160 | for _, fn := range c.events.insertion.fns { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:162:9: error: expected declaration 162 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:163:9: error: expected declaration 163 | c.events.insertion.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:165:9: error: expected declaration 165 | return item | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:166:1: error: expected declaration 166 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:172:15: error: expected ‘)’ 172 | func (c *Cache[K, V]) get(key K, touch bool) *list.Element { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:172:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:172:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:174:9: error: expected declaration 174 | if elem == nil { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:176:9: error: expected declaration 176 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:178:9: error: expected declaration 178 | item := elem.Value.(*Item[K, V]) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:179:9: error: expected declaration 179 | if item.isExpiredUnsafe() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:181:9: error: expected declaration 181 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:183:9: error: expected declaration 183 | c.items.lru.MoveToFront(elem) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:185:9: error: expected declaration 185 | if touch && item.ttl > 0 { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:187:17: error: expected declaration 187 | c.updateExpirations(false, elem) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:188:9: error: expected declaration 188 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:190:9: error: expected declaration 190 | return elem | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:191:1: error: expected declaration 191 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:197:15: error: expected ‘)’ 197 | func (c *Cache[K, V]) evict(reason EvictionReason, elems ...*list.Element) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:197:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:197:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:200:17: error: expected declaration 200 | c.metrics.Evictions += uint64(len(elems)) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:201:17: error: expected declaration 201 | c.metricsMu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:203:17: error: expected declaration 203 | c.events.eviction.mu.RLock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:204:17: error: expected declaration 204 | for i := range elems { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:206:25: error: expected declaration 206 | delete(c.items.values, item.key) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:207:25: error: expected declaration 207 | c.items.lru.Remove(elems[i]) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:208:25: error: expected declaration 208 | c.items.expQueue.remove(elems[i]) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:210:25: error: expected declaration 210 | for _, fn := range c.events.eviction.fns { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:212:25: error: expected declaration 212 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:213:17: error: expected declaration 213 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:214:17: error: expected declaration 214 | c.events.eviction.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:216:17: error: expected declaration 216 | return | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:217:9: error: expected declaration 217 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:219:9: error: expected declaration 219 | c.metricsMu.Lock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:220:9: error: expected declaration 220 | c.metrics.Evictions += uint64(len(c.items.values)) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:221:9: error: expected declaration 221 | c.metricsMu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:223:9: error: expected declaration 223 | c.events.eviction.mu.RLock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:224:9: error: expected declaration 224 | for _, elem := range c.items.values { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:227:17: error: expected declaration 227 | for _, fn := range c.events.eviction.fns { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:229:17: error: expected declaration 229 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:230:9: error: expected declaration 230 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:231:9: error: expected declaration 231 | c.events.eviction.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:233:9: error: expected declaration 233 | c.items.values = make(map[K]*list.Element) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:234:9: error: expected declaration 234 | c.items.lru.Init() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:235:9: error: expected declaration 235 | c.items.expQueue = newExpirationQueue[K, V]() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:236:1: error: expected declaration 236 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:241:15: error: expected ‘)’ 241 | func (c *Cache[K, V]) Set(key K, value V, ttl time.Duration) *Item[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:241:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:241:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:243:9: error: expected declaration 243 | defer c.items.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:245:9: error: expected declaration 245 | return c.set(key, value, ttl) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:246:1: error: expected declaration 246 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:252:15: error: expected ‘)’ 252 | func (c *Cache[K, V]) Get(key K, opts ...Option[K, V]) *Item[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:252:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:252:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:258:9: error: expected declaration 258 | applyOptions(&getOpts, opts...) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:260:9: error: expected declaration 260 | c.items.mu.Lock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:261:9: error: expected declaration 261 | elem := c.get(key, !getOpts.disableTouchOnHit) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:262:9: error: expected declaration 262 | c.items.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:264:9: error: expected declaration 264 | if elem == nil { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:266:17: error: expected declaration 266 | c.metrics.Misses++ | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:267:17: error: expected declaration 267 | c.metricsMu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:269:17: error: expected declaration 269 | if getOpts.loader != nil { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:271:17: error: expected declaration 271 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:273:17: error: expected declaration 273 | return nil | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:274:9: error: expected declaration 274 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:276:9: error: expected declaration 276 | c.metricsMu.Lock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:277:9: error: expected declaration 277 | c.metrics.Hits++ | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:278:9: error: expected declaration 278 | c.metricsMu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:280:9: error: expected declaration 280 | return elem.Value.(*Item[K, V]) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:281:1: error: expected declaration 281 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:285:15: error: expected ‘)’ 285 | func (c *Cache[K, V]) Delete(key K) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:285:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:285:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:287:9: error: expected declaration 287 | defer c.items.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:289:9: error: expected declaration 289 | elem := c.items.values[key] | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:290:9: error: expected declaration 290 | if elem == nil { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:292:9: error: expected declaration 292 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:294:9: error: expected declaration 294 | c.evict(EvictionReasonDeleted, elem) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:295:1: error: expected declaration 295 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:298:15: error: expected ‘)’ 298 | func (c *Cache[K, V]) DeleteAll() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:298:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:298:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:300:9: error: expected declaration 300 | c.evict(EvictionReasonDeleted) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:301:9: error: expected declaration 301 | c.items.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:302:1: error: expected declaration 302 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:305:15: error: expected ‘)’ 305 | func (c *Cache[K, V]) DeleteExpired() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:305:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:305:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:307:9: error: expected declaration 307 | defer c.items.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:309:9: error: expected declaration 309 | if c.items.expQueue.isEmpty() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:311:9: error: expected declaration 311 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:313:9: error: expected declaration 313 | e := c.items.expQueue[0] | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:314:9: error: expected declaration 314 | for e.Value.(*Item[K, V]).isExpiredUnsafe() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:317:17: error: expected declaration 317 | if c.items.expQueue.isEmpty() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:319:17: error: expected declaration 319 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:322:17: error: expected declaration 322 | e = c.items.expQueue[0] | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:323:9: error: expected declaration 323 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:324:1: error: expected declaration 324 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:329:15: error: expected ‘)’ 329 | func (c *Cache[K, V]) Touch(key K) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:329:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:329:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:331:9: error: expected declaration 331 | c.get(key, true) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:332:9: error: expected declaration 332 | c.items.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:333:1: error: expected declaration 333 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:336:15: error: expected ‘)’ 336 | func (c *Cache[K, V]) Len() int { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:336:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:336:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:338:9: error: expected declaration 338 | defer c.items.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:340:9: error: expected declaration 340 | return len(c.items.values) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:341:1: error: expected declaration 341 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:344:15: error: expected ‘)’ 344 | func (c *Cache[K, V]) Keys() []K { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:344:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:344:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:346:9: error: expected declaration 346 | defer c.items.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:348:9: error: expected declaration 348 | res := make([]K, 0, len(c.items.values)) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:349:9: error: expected declaration 349 | for k := range c.items.values { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:351:9: error: expected declaration 351 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:353:9: error: expected declaration 353 | return res | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:354:1: error: expected declaration 354 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:358:15: error: expected ‘)’ 358 | func (c *Cache[K, V]) Items() map[K]*Item[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:358:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:358:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:360:9: error: expected declaration 360 | defer c.items.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:362:9: error: expected declaration 362 | items := make(map[K]*Item[K, V], len(c.items.values)) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:363:9: error: expected declaration 363 | for k := range c.items.values { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:365:17: error: expected declaration 365 | if item != nil { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:367:17: error: expected declaration 367 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:368:9: error: expected declaration 368 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:370:9: error: expected declaration 370 | return items | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:371:1: error: expected declaration 371 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:374:15: error: expected ‘)’ 374 | func (c *Cache[K, V]) Metrics() Metrics { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:374:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:374:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:376:9: error: expected declaration 376 | defer c.metricsMu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:378:9: error: expected declaration 378 | return c.metrics | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:379:1: error: expected declaration 379 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:384:15: error: expected ‘)’ 384 | func (c *Cache[K, V]) Start() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:384:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:384:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:387:17: error: expected declaration 387 | defer c.items.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:389:17: error: expected declaration 389 | if !c.items.expQueue.isEmpty() && | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:392:25: error: expected declaration 392 | if d <= 0 { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:395:25: error: expected declaration 395 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:397:25: error: expected declaration 397 | return d | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:398:17: error: expected declaration 398 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:400:17: error: expected declaration 400 | if c.options.ttl > 0 { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:402:17: error: expected declaration 402 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:404:17: error: expected declaration 404 | return time.Hour | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:405:9: error: expected declaration 405 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:407:9: error: expected declaration 407 | timer := time.NewTimer(waitDur()) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:408:9: error: expected declaration 408 | stop := func() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:415:17: error: expected declaration 415 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:416:9: error: expected declaration 416 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:418:9: error: expected declaration 418 | defer stop() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:420:9: error: expected declaration 420 | for { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:424:17: error: expected declaration 424 | case d := <-c.items.timerCh: | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:426:25: error: expected declaration 426 | timer.Reset(d) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:427:17: error: expected declaration 427 | case <-timer.C: | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:429:25: error: expected declaration 429 | stop() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:430:25: error: expected declaration 430 | timer.Reset(waitDur()) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:431:17: error: expected declaration 431 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:432:9: error: expected declaration 432 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:433:1: error: expected declaration 433 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:437:15: error: expected ‘)’ 437 | func (c *Cache[K, V]) Stop() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:437:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:437:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:439:1: error: expected declaration 439 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:450:15: error: expected ‘)’ 450 | func (c *Cache[K, V]) OnInsertion(fn func(context.Context, *Item[K, V])) func() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:450:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:450:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:453:17: error: expected declaration 453 | ctx, cancel = context.WithCancel(context.Background()) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:454:9: error: expected declaration 454 | ) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:456:9: error: expected declaration 456 | c.events.insertion.mu.Lock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:457:9: error: expected declaration 457 | id := c.events.insertion.nextID | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:458:9: error: expected declaration 458 | c.events.insertion.fns[id] = func(item *Item[K, V]) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:460:17: error: expected declaration 460 | go func() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:462:25: error: expected declaration 462 | wg.Done() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:463:17: error: expected declaration 463 | }() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:464:9: error: expected declaration 464 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:465:9: error: expected declaration 465 | c.events.insertion.nextID++ | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:466:9: error: expected declaration 466 | c.events.insertion.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:468:9: error: expected declaration 468 | return func() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:471:17: error: expected declaration 471 | c.events.insertion.mu.Lock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:472:17: error: expected declaration 472 | delete(c.events.insertion.fns, id) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:473:17: error: expected declaration 473 | c.events.insertion.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:475:17: error: expected declaration 475 | wg.Wait() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:476:9: error: expected declaration 476 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:477:1: error: expected declaration 477 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:488:15: error: expected ‘)’ 488 | func (c *Cache[K, V]) OnEviction(fn func(context.Context, EvictionReason, *Item[K, V])) func() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:488:15: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:488:15: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:491:17: error: expected declaration 491 | ctx, cancel = context.WithCancel(context.Background()) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:492:9: error: expected declaration 492 | ) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:494:9: error: expected declaration 494 | c.events.eviction.mu.Lock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:495:9: error: expected declaration 495 | id := c.events.eviction.nextID | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:496:9: error: expected declaration 496 | c.events.eviction.fns[id] = func(r EvictionReason, item *Item[K, V]) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:498:17: error: expected declaration 498 | go func() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:500:25: error: expected declaration 500 | wg.Done() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:501:17: error: expected declaration 501 | }() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:502:9: error: expected declaration 502 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:503:9: error: expected declaration 503 | c.events.eviction.nextID++ | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:504:9: error: expected declaration 504 | c.events.eviction.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:506:9: error: expected declaration 506 | return func() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:509:17: error: expected declaration 509 | c.events.eviction.mu.Lock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:510:17: error: expected declaration 510 | delete(c.events.eviction.fns, id) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:511:17: error: expected declaration 511 | c.events.eviction.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:513:17: error: expected declaration 513 | wg.Wait() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:514:9: error: expected declaration 514 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:515:1: error: expected declaration 515 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:518:15: error: expected ‘]’ 518 | type Loader[K comparable, V any] interface { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:525:1: error: expected declaration 525 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:529:19: error: expected ‘]’ 529 | type LoaderFunc[K comparable, V any] func(*Cache[K, V], K) *Item[K, V] | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:534:19: error: expected ‘)’ 534 | func (l LoaderFunc[K, V]) Load(c *Cache[K, V], key K) *Item[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:534:19: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:534:19: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:536:1: error: expected declaration 536 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:540:25: error: expected ‘]’ 540 | type SuppressedLoader[K comparable, V any] struct { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:542:9: error: expected declaration 542 | group *singleflight.Group | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:543:1: error: expected declaration 543 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:548:25: error: expected ‘(’ 548 | func NewSuppressedLoader[K comparable, V any](loader Loader[K, V], group *singleflight.Group) *SuppressedLoader[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:548:28: error: expected ‘]’ 548 | func NewSuppressedLoader[K comparable, V any](loader Loader[K, V], group *singleflight.Group) *SuppressedLoader[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:548:28: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:551:9: error: expected declaration 551 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:553:9: error: expected declaration 553 | return &SuppressedLoader[K, V]{ | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:557:1: error: expected declaration 557 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:564:26: error: expected ‘)’ 564 | func (l *SuppressedLoader[K, V]) Load(c *Cache[K, V], key K) *Item[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:564:26: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:564:26: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:574:9: error: expected declaration 574 | res, _, _ := l.group.Do(strKey, func() (interface{}, error) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:574:60: error: expected ‘;’ or newline after top level declaration 574 | res, _, _ := l.group.Do(strKey, func() (interface{}, error) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:576:17: error: expected declaration 576 | if item == nil { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:578:17: error: expected declaration 578 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:580:17: error: expected declaration 580 | return item, nil | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:581:9: error: expected declaration 581 | }) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:582:9: error: expected declaration 582 | if res == nil { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:584:9: error: expected declaration 584 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:586:9: error: expected declaration 586 | return res.(*Item[K, V]) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/cache.go:587:1: error: expected declaration 587 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:10:24: error: expected ‘]’ 10 | type expirationQueue[K comparable, V any] []*list.Element | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:13:24: error: expected ‘(’ 13 | func newExpirationQueue[K comparable, V any]() expirationQueue[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:13:27: error: expected ‘]’ 13 | func newExpirationQueue[K comparable, V any]() expirationQueue[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:13:27: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:15:9: error: expected declaration 15 | heap.Init(&q) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:16:9: error: expected declaration 16 | return q | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:17:1: error: expected declaration 17 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:20:24: error: expected ‘)’ 20 | func (q expirationQueue[K, V]) isEmpty() bool { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:20:24: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:20:24: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:22:1: error: expected declaration 22 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:25:25: error: expected ‘)’ 25 | func (q *expirationQueue[K, V]) update(elem *list.Element) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:25:25: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:25:25: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:27:1: error: expected declaration 27 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:31:25: error: expected ‘)’ 31 | func (q *expirationQueue[K, V]) push(elem *list.Element) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:31:25: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:31:25: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:33:1: error: expected declaration 33 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:37:25: error: expected ‘)’ 37 | func (q *expirationQueue[K, V]) remove(elem *list.Element) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:37:25: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:37:25: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:39:1: error: expected declaration 39 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:42:24: error: expected ‘)’ 42 | func (q expirationQueue[K, V]) Len() int { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:42:24: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:42:24: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:44:1: error: expected declaration 44 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:48:24: error: expected ‘)’ 48 | func (q expirationQueue[K, V]) Less(i, j int) bool { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:48:24: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:48:24: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:50:9: error: expected declaration 50 | if item1.expiresAt.IsZero() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:52:9: error: expected declaration 52 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:54:9: error: expected declaration 54 | if item2.expiresAt.IsZero() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:56:9: error: expected declaration 56 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:58:9: error: expected declaration 58 | return item1.expiresAt.Before(item2.expiresAt) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:59:1: error: expected declaration 59 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:62:24: error: expected ‘)’ 62 | func (q expirationQueue[K, V]) Swap(i, j int) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:62:24: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:62:24: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:64:9: error: expected declaration 64 | q[i].Value.(*Item[K, V]).queueIndex = i | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:65:9: error: expected declaration 65 | q[j].Value.(*Item[K, V]).queueIndex = j | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:66:1: error: expected declaration 66 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:69:25: error: expected ‘)’ 69 | func (q *expirationQueue[K, V]) Push(x interface{}) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:69:25: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:69:25: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:71:9: error: expected declaration 71 | elem.Value.(*Item[K, V]).queueIndex = len(*q) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:72:9: error: expected declaration 72 | *q = append(*q, elem) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:73:1: error: expected declaration 73 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:76:25: error: expected ‘)’ 76 | func (q *expirationQueue[K, V]) Pop() interface{} { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:76:25: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:76:25: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:78:9: error: expected declaration 78 | i := len(old) - 1 | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:79:9: error: expected declaration 79 | elem := old[i] | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:80:9: error: expected declaration 80 | elem.Value.(*Item[K, V]).queueIndex = -1 | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:81:9: error: expected declaration 81 | old[i] = nil // avoid memory leak | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:82:9: error: expected declaration 82 | *q = old[:i] | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:84:9: error: expected declaration 84 | return elem | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/expiration_queue.go:85:1: error: expected declaration 85 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:19:13: error: expected ‘]’ 19 | type Item[K comparable, V any] struct { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:30:9: error: expected declaration 30 | key K | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:31:9: error: expected declaration 31 | value V | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:32:9: error: expected declaration 32 | ttl time.Duration | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:33:9: error: expected declaration 33 | expiresAt time.Time | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:34:9: error: expected declaration 34 | queueIndex int | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:35:1: error: expected declaration 35 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:38:13: error: expected ‘(’ 38 | func newItem[K comparable, V any](key K, value V, ttl time.Duration) *Item[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:38:16: error: expected ‘]’ 38 | func newItem[K comparable, V any](key K, value V, ttl time.Duration) *Item[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:38:16: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:44:9: error: expected declaration 44 | item.touch() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:46:9: error: expected declaration 46 | return item | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:47:1: error: expected declaration 47 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:50:17: error: expected ‘)’ 50 | func (item *Item[K, V]) update(value V, ttl time.Duration) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:50:17: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:50:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:52:9: error: expected declaration 52 | defer item.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:54:9: error: expected declaration 54 | item.value = value | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:55:9: error: expected declaration 55 | item.ttl = ttl | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:59:9: error: expected declaration 59 | item.expiresAt = time.Time{} | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:60:9: error: expected declaration 60 | item.touchUnsafe() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:61:1: error: expected declaration 61 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:64:17: error: expected ‘)’ 64 | func (item *Item[K, V]) touch() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:64:17: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:64:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:66:9: error: expected declaration 66 | defer item.mu.Unlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:68:9: error: expected declaration 68 | item.touchUnsafe() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:69:1: error: expected declaration 69 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:73:17: error: expected ‘)’ 73 | func (item *Item[K, V]) touchUnsafe() { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:73:17: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:73:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:76:9: error: expected declaration 76 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:78:9: error: expected declaration 78 | item.expiresAt = time.Now().Add(item.ttl) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:79:1: error: expected declaration 79 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:83:17: error: expected ‘)’ 83 | func (item *Item[K, V]) IsExpired() bool { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:83:17: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:83:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:85:9: error: expected declaration 85 | defer item.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:87:9: error: expected declaration 87 | return item.isExpiredUnsafe() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:88:1: error: expected declaration 88 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:92:17: error: expected ‘)’ 92 | func (item *Item[K, V]) isExpiredUnsafe() bool { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:92:17: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:92:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:95:9: error: expected declaration 95 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:97:9: error: expected declaration 97 | return item.expiresAt.Before(time.Now()) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:98:1: error: expected declaration 98 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:101:17: error: expected ‘)’ 101 | func (item *Item[K, V]) Key() K { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:101:17: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:101:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:103:9: error: expected declaration 103 | defer item.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:105:9: error: expected declaration 105 | return item.key | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:106:1: error: expected declaration 106 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:109:17: error: expected ‘)’ 109 | func (item *Item[K, V]) Value() V { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:109:17: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:109:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:111:9: error: expected declaration 111 | defer item.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:113:9: error: expected declaration 113 | return item.value | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:114:1: error: expected declaration 114 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:117:17: error: expected ‘)’ 117 | func (item *Item[K, V]) TTL() time.Duration { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:117:17: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:117:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:119:9: error: expected declaration 119 | defer item.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:121:9: error: expected declaration 121 | return item.ttl | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:122:1: error: expected declaration 122 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:125:17: error: expected ‘)’ 125 | func (item *Item[K, V]) ExpiresAt() time.Time { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:125:17: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:125:17: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:127:9: error: expected declaration 127 | defer item.mu.RUnlock() | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:129:9: error: expected declaration 129 | return item.expiresAt | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/item.go:130:1: error: expected declaration 130 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:6:15: error: expected ‘]’ 6 | type Option[K comparable, V any] interface { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:8:1: error: expected declaration 8 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:11:19: error: expected ‘]’ 11 | type optionFunc[K comparable, V any] func(*options[K, V]) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:14:20: error: expected ‘)’ 14 | func (fn optionFunc[K, V]) apply(opts *options[K, V]) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:14:20: error: expected function name /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:14:20: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:16:1: error: expected declaration 16 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:19:16: error: expected ‘]’ 19 | type options[K comparable, V any] struct { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:21:9: error: expected declaration 21 | ttl time.Duration | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:22:9: error: expected declaration 22 | loader Loader[K, V] | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:23:9: error: expected declaration 23 | disableTouchOnHit bool | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:24:1: error: expected declaration 24 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:27:18: error: expected ‘(’ 27 | func applyOptions[K comparable, V any](v *options[K, V], opts ...Option[K, V]) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:27:21: error: expected ‘]’ 27 | func applyOptions[K comparable, V any](v *options[K, V], opts ...Option[K, V]) { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:27:21: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:30:9: error: expected declaration 30 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:31:1: error: expected declaration 31 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:35:18: error: expected ‘(’ 35 | func WithCapacity[K comparable, V any](c uint64) Option[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:35:21: error: expected ‘]’ 35 | func WithCapacity[K comparable, V any](c uint64) Option[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:35:21: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:38:9: error: expected declaration 38 | }) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:39:1: error: expected declaration 39 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:43:13: error: expected ‘(’ 43 | func WithTTL[K comparable, V any](ttl time.Duration) Option[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:43:16: error: expected ‘]’ 43 | func WithTTL[K comparable, V any](ttl time.Duration) Option[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:43:16: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:46:9: error: expected declaration 46 | }) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:47:1: error: expected declaration 47 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:52:16: error: expected ‘(’ 52 | func WithLoader[K comparable, V any](l Loader[K, V]) Option[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:52:19: error: expected ‘]’ 52 | func WithLoader[K comparable, V any](l Loader[K, V]) Option[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:52:19: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:55:9: error: expected declaration 55 | }) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:56:1: error: expected declaration 56 | } | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:63:27: error: expected ‘(’ 63 | func WithDisableTouchOnHit[K comparable, V any]() Option[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:63:30: error: expected ‘]’ 63 | func WithDisableTouchOnHit[K comparable, V any]() Option[K, V] { | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:63:30: error: expected ‘;’ or newline after top level declaration /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:66:9: error: expected declaration 66 | }) | ^ /build/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.0.1/options.go:67:1: error: expected declaration 67 | } | ^ ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-staging-with-build-support-i486/build/build used straw: :with_build_support:without_check: build@euronuc-i486