omec-project / gnbsim

gNB simulator
67 stars 37 forks source link

go.mod checksum mismatch #161

Closed yoursunny closed 5 months ago

yoursunny commented 5 months ago

I'm suddenly getting "security error" regarding mismatched checksum in go.mod.

ubuntu@N1:~/gnbsim$ go version
go version go1.22.2 linux/amd64

ubuntu@N1:~/gnbsim$ git log | head -4
commit fc97de690d353d56ab0f9163d27d93766c6543c6
Author: gab-arrobo <gabriel.arrobo@intel.com>
Date:   Tue Apr 9 17:39:03 2024 -0700

ubuntu@N1:~/gnbsim$ go mod download
verifying github.com/omec-project/aper@v1.1.1/go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        go.sum:     h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

Was there a force-push in one of the dependencies?

yoursunny commented 5 months ago

I attempted deleting go.sum and re-running go mod tidy, but it returns the same error:

ubuntu@N1:~/gnbsim$ go mod tidy
go: downloading github.com/omec-project/http2_util v1.2.0
go: downloading github.com/omec-project/logger_util v1.2.0
go: downloading golang.org/x/net v0.22.0
go: downloading github.com/antonfisher/nested-logrus-formatter v1.3.1
go: downloading github.com/omec-project/amf v1.4.0
go: downloading github.com/omec-project/ngap v1.2.0
go: downloading github.com/omec-project/openapi v1.2.0
go: downloading github.com/omec-project/util v1.0.13
go: downloading github.com/omec-project/aper v1.1.1
go: downloading github.com/omec-project/nas v1.2.0
go: downloading github.com/yerden/go-util v1.1.4
go: downloading github.com/calee0219/fatal v0.0.1
go: downloading git.cs.nctu.edu.tw/calee/sctp v1.1.0
go: downloading github.com/omec-project/CommonConsumerTestData v1.2.0
go: downloading github.com/stretchr/testify v1.9.0
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading google.golang.org/protobuf v1.33.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
go: downloading github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
go: downloading github.com/omec-project/metricfunc v1.4.0
go: downloading go.mongodb.org/mongo-driver v1.11.7
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/go-playground/validator/v10 v10.19.0
go: downloading github.com/pelletier/go-toml/v2 v2.2.0
go: downloading github.com/ugorji/go/codec v1.2.12
go: downloading github.com/bytedance/sonic v1.11.3
go: downloading github.com/goccy/go-json v0.10.2
go: downloading github.com/json-iterator/go v1.1.12
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/prometheus/client_golang v1.19.0
go: downloading github.com/segmentio/kafka-go v0.4.47
go: downloading google.golang.org/grpc v1.62.1
go: downloading github.com/thakurajayL/go-ipam v0.0.5-dev
go: downloading github.com/evanphx/json-patch v5.9.0+incompatible
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading golang.org/x/oauth2 v0.16.0
go: downloading gopkg.in/h2non/gock.v1 v1.1.2
go: downloading github.com/golang-jwt/jwt v3.2.2+incompatible
go: downloading github.com/gabriel-vasile/mimetype v1.4.3
go: downloading github.com/go-playground/universal-translator v0.18.1
go: downloading github.com/leodido/go-urn v1.4.0
go: downloading golang.org/x/crypto v0.21.0
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/go-playground/locales v0.14.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.2.0
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/common v0.48.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80
go: downloading google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80
go: downloading github.com/avast/retry-go/v4 v4.1.0
go: downloading github.com/go-redis/redis/v8 v8.11.5
go: downloading github.com/jmoiron/sqlx v1.3.5
go: downloading github.com/lib/pq v1.10.6
go: downloading go.etcd.io/etcd/client/v3 v3.5.10
go: downloading inet.af/netaddr v0.0.0-20220811202034-502d2d690317
go: downloading golang.org/x/sync v0.6.0
go: downloading github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542
go: downloading github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a
go: downloading github.com/klauspost/compress v1.17.0
go: downloading github.com/pierrec/lz4/v4 v4.1.15
go: downloading google.golang.org/appengine v1.6.8
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
go: downloading github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d
go: downloading golang.org/x/arch v0.7.0
go: downloading go4.org/intern v0.0.0-20220617035311-6925f38cc365
go: downloading go.etcd.io/etcd/api/v3 v3.5.10
go: downloading go.etcd.io/etcd/client/pkg/v3 v3.5.10
go: downloading go.uber.org/zap v1.24.0
go: downloading github.com/golang/snappy v0.0.4
go: downloading github.com/montanaflynn/stats v0.6.6
go: downloading github.com/xdg-go/scram v1.1.2
go: downloading github.com/klauspost/cpuid/v2 v2.2.7
go: downloading github.com/twitchyliquid64/golang-asm v0.15.1
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80
go: downloading github.com/coreos/go-semver v0.3.0
go: downloading github.com/coreos/go-systemd/v22 v22.3.2
go: downloading go.uber.org/atomic v1.9.0
go: downloading go.uber.org/multierr v1.9.0
go: downloading github.com/xdg-go/stringprep v1.0.4
go: downloading github.com/xdg-go/pbkdf2 v1.0.0
go: downloading go4.org/unsafe/assume-no-moving-gc v0.0.0-20230525183740-e7c30c78aeb2
go: downloading github.com/chenzhuoyu/iasm v0.9.1
go: github.com/omec-project/gnbsim/common imports
        github.com/omec-project/nas: github.com/omec-project/nas@v1.2.0: verifying module: checksum mismatch
        downloaded: h1:cTm9XOT15aI9iz9rXh7+XomxFHG6r3jaEaDZOWjWPZA=
        sum.golang.org: h1:fSMhieEKv7cJljkullFDh4TGee9Dc3+aYzpQpUN4w1s=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/ngap imports
        github.com/omec-project/aper: github.com/omec-project/aper@v1.1.1: verifying module: checksum mismatch
        downloaded: h1:Zog8anBGMfb8r9CJDM66ZYYE03hOHyxCHccKd3l3uTo=
        sum.golang.org: h1:5Kr7QBheYWb/0723Xqi2/4kTiQS3WiqrxjWlOHOv5/Q=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/realue imports
        github.com/omec-project/nas/nasConvert: github.com/omec-project/nas@v1.2.0: verifying module: checksum mismatch
        downloaded: h1:cTm9XOT15aI9iz9rXh7+XomxFHG6r3jaEaDZOWjWPZA=
        sum.golang.org: h1:fSMhieEKv7cJljkullFDh4TGee9Dc3+aYzpQpUN4w1s=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/realue imports
        github.com/omec-project/nas/nasMessage: github.com/omec-project/nas@v1.2.0: verifying module: checksum mismatch
        downloaded: h1:cTm9XOT15aI9iz9rXh7+XomxFHG6r3jaEaDZOWjWPZA=
        sum.golang.org: h1:fSMhieEKv7cJljkullFDh4TGee9Dc3+aYzpQpUN4w1s=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/realue imports
        github.com/omec-project/nas/nasTestpacket: github.com/omec-project/nas@v1.2.0: verifying module: checksum mismatch
        downloaded: h1:cTm9XOT15aI9iz9rXh7+XomxFHG6r3jaEaDZOWjWPZA=
        sum.golang.org: h1:fSMhieEKv7cJljkullFDh4TGee9Dc3+aYzpQpUN4w1s=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/realue imports
        github.com/omec-project/nas/nasType: github.com/omec-project/nas@v1.2.0: verifying module: checksum mismatch
        downloaded: h1:cTm9XOT15aI9iz9rXh7+XomxFHG6r3jaEaDZOWjWPZA=
        sum.golang.org: h1:fSMhieEKv7cJljkullFDh4TGee9Dc3+aYzpQpUN4w1s=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/realue/context imports
        github.com/omec-project/nas/security: github.com/omec-project/nas@v1.2.0: verifying module: checksum mismatch
        downloaded: h1:cTm9XOT15aI9iz9rXh7+XomxFHG6r3jaEaDZOWjWPZA=
        sum.golang.org: h1:fSMhieEKv7cJljkullFDh4TGee9Dc3+aYzpQpUN4w1s=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/factory imports
        gopkg.in/yaml.v2 tested by
        gopkg.in/yaml.v2.test imports
        gopkg.in/check.v1: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        go.mongodb.org/mongo-driver/bson tested by
        go.mongodb.org/mongo-driver/bson.test imports
        github.com/google/go-cmp/cmp: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        go.mongodb.org/mongo-driver/bson tested by
        go.mongodb.org/mongo-driver/bson.test imports
        github.com/tidwall/pretty: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/profile/httprouter imports
        github.com/omec-project/openapi imports
        golang.org/x/oauth2 tested by
        golang.org/x/oauth2.test imports
        github.com/google/go-cmp/cmp/cmpopts: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/profile/httprouter imports
        github.com/omec-project/openapi imports
        gopkg.in/h2non/gock.v1 tested by
        gopkg.in/h2non/gock.v1.test imports
        github.com/nbio/st: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam tested by
        github.com/thakurajayL/go-ipam.test imports
        github.com/testcontainers/testcontainers-go: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam tested by
        github.com/thakurajayL/go-ipam.test imports
        github.com/testcontainers/testcontainers-go/wait: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/profile/httprouter imports
        github.com/gin-gonic/gin imports
        github.com/gin-gonic/gin/binding imports
        github.com/go-playground/validator/v10 tested by
        github.com/go-playground/validator/v10.test imports
        github.com/go-playground/assert/v2: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        github.com/go-redis/redis/v8 tested by
        github.com/go-redis/redis/v8.test imports
        github.com/onsi/ginkgo: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        github.com/go-redis/redis/v8 tested by
        github.com/go-redis/redis/v8.test imports
        github.com/onsi/gomega: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        github.com/jmoiron/sqlx tested by
        github.com/jmoiron/sqlx.test imports
        github.com/go-sql-driver/mysql: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        github.com/jmoiron/sqlx tested by
        github.com/jmoiron/sqlx.test imports
        github.com/mattn/go-sqlite3: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        go.mongodb.org/mongo-driver/mongo imports
        go.mongodb.org/mongo-driver/x/mongo/driver/topology tested by
        go.mongodb.org/mongo-driver/x/mongo/driver/topology.test imports
        github.com/kr/pretty: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        go.etcd.io/etcd/client/v3 imports
        go.uber.org/zap tested by
        go.uber.org/zap.test imports
        go.uber.org/goleak: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        go.etcd.io/etcd/client/v3 imports
        go.uber.org/zap tested by
        go.uber.org/zap.test imports
        go.uber.org/zap/internal/ztest imports
        github.com/benbjohnson/clock: github.com/omec-project/aper@v1.1.1: verifying go.mod: checksum mismatch
        downloaded: h1:jDWasZ2XLFL2uSEWhgGlT/ELyrpwCJd/2kE/VEGG8Ew=
        sum.golang.org: h1:oOkKRI2BIo8SHpCsEzNbo9qiowEtEy3q+wmO7TuDrx4=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
yoursunny commented 5 months ago

I also tried disabling proxy.golang.org and sumdb.golang.org, but it met a different error:

ubuntu@N1:~/gnbsim$ GOPROXY=direct GONOSUMDB='*' go mod tidy
go: downloading golang.org/x/net v0.22.0
go: downloading github.com/omec-project/http2_util v1.2.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/omec-project/logger_util v1.2.0
go: downloading github.com/gin-contrib/cors v1.7.1
go: downloading git.cs.nctu.edu.tw/calee/sctp v1.1.0
go: downloading github.com/urfave/cli v1.22.14
go: downloading github.com/antonfisher/nested-logrus-formatter v1.3.1
go: downloading github.com/omec-project/amf v1.4.0
go: downloading github.com/omec-project/nas v1.2.0
go: downloading github.com/omec-project/util v1.0.13
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/omec-project/ngap v1.2.0
go: downloading github.com/omec-project/aper v1.1.1
go: downloading github.com/omec-project/openapi v1.2.0
go: downloading github.com/gin-gonic/gin v1.9.1
go: downloading github.com/stretchr/testify v1.9.0
go: downloading github.com/yerden/go-util v1.1.4
go: downloading github.com/calee0219/fatal v0.0.1
go: downloading github.com/omec-project/CommonConsumerTestData v1.2.0
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
go: downloading github.com/omec-project/metricfunc v1.4.0
go: downloading go.mongodb.org/mongo-driver v1.11.7
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/aead/cmac v0.0.0-20160719120800-7af84192f0b1
go: downloading github.com/omec-project/util_3gpp v1.2.0
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading google.golang.org/grpc v1.62.1
go: downloading google.golang.org/protobuf v1.33.0
go: downloading github.com/prometheus/client_golang v1.19.0
go: downloading github.com/segmentio/kafka-go v0.4.47
go: downloading github.com/thakurajayL/go-ipam v0.0.5-dev
go: downloading github.com/evanphx/json-patch v5.9.0+incompatible
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/omec-project/logger_conf v1.1.1
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading golang.org/x/oauth2 v0.16.0
go: downloading gopkg.in/h2non/gock.v1 v1.1.2
go: downloading github.com/golang-jwt/jwt v3.2.2+incompatible
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.2.0
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/common v0.48.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/go-playground/validator/v10 v10.19.0
go: downloading github.com/pelletier/go-toml/v2 v2.2.0
go: downloading github.com/ugorji/go/codec v1.2.12
go: downloading github.com/bytedance/sonic v1.11.3
go: downloading github.com/goccy/go-json v0.10.2
go: downloading github.com/json-iterator/go v1.1.12
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80
go: downloading github.com/avast/retry-go/v4 v4.1.0
go: downloading github.com/go-redis/redis/v8 v8.11.5
go: downloading github.com/jmoiron/sqlx v1.3.5
go: downloading github.com/lib/pq v1.10.6
go: downloading go.etcd.io/etcd/client/v3 v3.5.10
go: downloading inet.af/netaddr v0.0.0-20220811202034-502d2d690317
go: downloading golang.org/x/sync v0.6.0
go: downloading github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a
go: downloading github.com/gabriel-vasile/mimetype v1.4.3
go: downloading github.com/go-playground/universal-translator v0.18.1
go: downloading github.com/leodido/go-urn v1.4.0
go: downloading golang.org/x/crypto v0.21.0
go: downloading github.com/go-playground/locales v0.14.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
go: downloading github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542
go: downloading go.etcd.io/etcd/client/pkg/v3 v3.5.10
go: downloading go.etcd.io/etcd/api/v3 v3.5.10
go: downloading go.uber.org/zap v1.24.0
go: downloading google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80
go: downloading github.com/klauspost/compress v1.17.0
go: downloading github.com/pierrec/lz4/v4 v4.1.15
go: downloading github.com/golang/snappy v0.0.4
go: downloading github.com/montanaflynn/stats v0.6.6
go: downloading google.golang.org/appengine v1.6.8
go: downloading github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d
go: downloading golang.org/x/arch v0.7.0
go: downloading github.com/coreos/go-systemd/v22 v22.3.2
go: downloading github.com/coreos/go-semver v0.3.0
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80
go: downloading github.com/xdg-go/scram v1.1.2
go: downloading go.uber.org/atomic v1.9.0
go: downloading go.uber.org/multierr v1.9.0
go: downloading github.com/xdg-go/stringprep v1.0.4
go: downloading github.com/twitchyliquid64/golang-asm v0.15.1
go: downloading github.com/klauspost/cpuid/v2 v2.2.7
go: downloading github.com/xdg-go/pbkdf2 v1.0.0
go: downloading github.com/chenzhuoyu/iasm v0.9.1
go: github.com/omec-project/gnbsim/gnodeb/transport imports
        git.cs.nctu.edu.tw/calee/sctp: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/factory imports
        gopkg.in/yaml.v2 tested by
        gopkg.in/yaml.v2.test imports
        gopkg.in/check.v1: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/realue imports
        github.com/omec-project/nas/nasConvert tested by
        github.com/omec-project/nas/nasConvert.test imports
        github.com/smartystreets/goconvey/convey: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        inet.af/netaddr: unrecognized import path "inet.af/netaddr": https fetch: Get "https://inet.af/netaddr?go-get=1": dial tcp: lookup inet.af on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        go.mongodb.org/mongo-driver/bson tested by
        go.mongodb.org/mongo-driver/bson.test imports
        github.com/google/go-cmp/cmp: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        go.mongodb.org/mongo-driver/bson tested by
        go.mongodb.org/mongo-driver/bson.test imports
        github.com/tidwall/pretty: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/profile/httprouter imports
        github.com/omec-project/openapi imports
        golang.org/x/oauth2 tested by
        golang.org/x/oauth2.test imports
        github.com/google/go-cmp/cmp/cmpopts: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/profile/httprouter imports
        github.com/omec-project/openapi imports
        gopkg.in/h2non/gock.v1 tested by
        gopkg.in/h2non/gock.v1.test imports
        github.com/nbio/st: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam tested by
        github.com/thakurajayL/go-ipam.test imports
        github.com/testcontainers/testcontainers-go: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam tested by
        github.com/thakurajayL/go-ipam.test imports
        github.com/testcontainers/testcontainers-go/wait: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/profile/httprouter imports
        github.com/gin-gonic/gin imports
        github.com/gin-gonic/gin/binding imports
        github.com/go-playground/validator/v10 tested by
        github.com/go-playground/validator/v10.test imports
        github.com/go-playground/assert/v2: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        github.com/go-redis/redis/v8 tested by
        github.com/go-redis/redis/v8.test imports
        github.com/onsi/ginkgo: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        github.com/go-redis/redis/v8 tested by
        github.com/go-redis/redis/v8.test imports
        github.com/onsi/gomega: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        github.com/jmoiron/sqlx tested by
        github.com/jmoiron/sqlx.test imports
        github.com/go-sql-driver/mysql: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        github.com/jmoiron/sqlx tested by
        github.com/jmoiron/sqlx.test imports
        github.com/mattn/go-sqlite3: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        go.mongodb.org/mongo-driver/mongo imports
        go.mongodb.org/mongo-driver/x/mongo/driver/topology tested by
        go.mongodb.org/mongo-driver/x/mongo/driver/topology.test imports
        github.com/kr/pretty: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        go.etcd.io/etcd/client/v3 imports
        go.uber.org/zap tested by
        go.uber.org/zap.test imports
        go.uber.org/goleak: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host
go: github.com/omec-project/gnbsim/gnodeb/context imports
        github.com/omec-project/amf/context imports
        github.com/omec-project/util/drsm imports
        github.com/thakurajayL/go-ipam imports
        go.etcd.io/etcd/client/v3 imports
        go.uber.org/zap tested by
        go.uber.org/zap.test imports
        go.uber.org/zap/internal/ztest imports
        github.com/benbjohnson/clock: git.cs.nctu.edu.tw/calee/sctp@v1.1.0: unrecognized import path "git.cs.nctu.edu.tw/calee/sctp": https fetch: Get "https://git.cs.nctu.edu.tw/calee/sctp?go-get=1": dial tcp: lookup git.cs.nctu.edu.tw on 127.0.0.53:53: no such host

It seems that this repository has a dependency on git.cs.nctu.edu.tw/calee/sctp package but the server hosting that package is not publicly accessible.

gab-arrobo commented 5 months ago

Thanks for reporting the issue. I was reviewing PR #160 and I noticed that issue. The estrange thing is that I do not see any changes in the NAS module (I created tag v1.2.0) exactly a month ago.

Also, I deleted go.sum and recreated through go mod tidy and I do not see any issue

ubuntu:~/gnbsim$ git remote show origin
* remote origin
  Fetch URL: https://github.com/omec-project/gnbsim.git
  Push  URL: https://github.com/omec-project/gnbsim.git
  HEAD branch: main
  Remote branches:
    dev-guti-attach  tracked
    dev-supi-fix     tracked
    gui              tracked
    main             tracked
    reconnect_to_amf tracked
    rel-0.0          tracked
  Local branch configured for 'git pull':
    main merges with remote main
  Local ref configured for 'git push':
    main pushes to main (up to date)
ubuntu:~/gnbsim$ rm go.sum
ubuntu:~/gnbsim$ git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        deleted:    go.sum

no changes added to commit (use "git add" and/or "git commit -a")
ubuntu:~/gnbsim$ go mod tidy
ubuntu:~/gnbsim$ git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
gab-arrobo commented 5 months ago

I see a similar SECURITY ERROR issue when trying to build its docker image after deleting the ~/go/pkg/ directories

$ make docker-build
go: downloading github.com/calee0219/fatal v0.0.1
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/omec-project/nas v1.2.0
go: downloading github.com/gin-gonic/gin v1.9.1
go: downloading github.com/omec-project/logger_util v1.2.0
go: downloading github.com/omec-project/openapi v1.2.0
go: downloading git.cs.nctu.edu.tw/calee/sctp v1.1.0
go: downloading github.com/omec-project/amf v1.4.0
go: downloading github.com/stretchr/testify v1.9.0
go: downloading github.com/omec-project/util v1.0.13
go: downloading github.com/omec-project/ngap v1.2.0
go: downloading github.com/antonfisher/nested-logrus-formatter v1.3.1
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading golang.org/x/net v0.22.0
go: downloading github.com/omec-project/aper v1.1.1
go: downloading github.com/omec-project/CommonConsumerTestData v1.2.0
go: downloading github.com/urfave/cli v1.22.14
go: downloading github.com/gin-contrib/cors v1.7.1
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/yerden/go-util v1.1.4
go: downloading github.com/omec-project/http2_util v1.2.0
go: downloading github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
go: downloading github.com/omec-project/metricfunc v1.4.0
go: downloading go.mongodb.org/mongo-driver v1.11.7
go: downloading github.com/go-playground/validator/v10 v10.19.0
go: downloading github.com/pelletier/go-toml/v2 v2.2.0
go: downloading github.com/ugorji/go/codec v1.2.12
go: downloading google.golang.org/protobuf v1.33.0
go: downloading github.com/bytedance/sonic v1.11.3
go: downloading github.com/goccy/go-json v0.10.2
go: downloading github.com/json-iterator/go v1.1.12
go: downloading github.com/prometheus/client_golang v1.19.0
go: downloading github.com/segmentio/kafka-go v0.4.47
go: downloading google.golang.org/grpc v1.62.1
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/thakurajayL/go-ipam v0.0.5-dev
go: downloading github.com/evanphx/json-patch v5.9.0+incompatible
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/gabriel-vasile/mimetype v1.4.3
go: downloading github.com/go-playground/universal-translator v0.18.1
go: downloading github.com/leodido/go-urn v1.4.0
go: downloading golang.org/x/crypto v0.21.0
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading golang.org/x/oauth2 v0.16.0
go: downloading gopkg.in/h2non/gock.v1 v1.1.2
go: downloading github.com/golang-jwt/jwt v3.2.2+incompatible
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/common v0.48.0
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.12.0
go: downloading github.com/go-playground/locales v0.14.1
go: downloading github.com/avast/retry-go/v4 v4.1.0
go: downloading github.com/go-redis/redis/v8 v8.11.5
go: downloading github.com/jmoiron/sqlx v1.3.5
go: downloading github.com/lib/pq v1.10.6
go: downloading go.etcd.io/etcd/client/v3 v3.5.10
go: downloading inet.af/netaddr v0.0.0-20220811202034-502d2d690317
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80
go: downloading github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542
go: downloading github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a
go: downloading github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d
go: downloading golang.org/x/arch v0.7.0
go: downloading github.com/golang/protobuf v1.5.3
go: downloading google.golang.org/appengine v1.6.8
go: downloading github.com/klauspost/compress v1.17.0
go: downloading github.com/pierrec/lz4/v4 v4.1.15
go: downloading google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80
verifying github.com/omec-project/aper@v1.1.1: checksum mismatch
        downloaded: h1:Zog8anBGMfb8r9CJDM66ZYYE03hOHyxCHccKd3l3uTo=
        go.sum:     h1:5Kr7QBheYWb/0723Xqi2/4kTiQS3WiqrxjWlOHOv5/Q=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
make: *** [Makefile:63: docker-build] Error 1
linouxis9 commented 5 months ago

Hi,

I can reproduce this issue on an environnent that has never downloaded one of the gnbsim's dependencies:

packetrusher@packetrusher:~/gnbsim$ go mod download
verifying github.com/omec-project/util_3gpp@v1.2.0/go.mod: checksum mismatch
        downloaded: h1:q2fd2dniyDlCDO/2WwEnU9+fTAO7OYrzRnPqaBxZFyc=
        go.sum:     h1:53qng9MRMW1tgc2Cg0w+LaBNbskdQQqGZt/fcjPQSy4=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

BTW: package git.cs.nctu.edu.tw/calee/sctp should be updated to github.com/free5gc/sctp (which is a modern fork of the library)

gab-arrobo commented 5 months ago

Another way to reproduce the issue is by cleaning the cache and the building it again

$ go clean -modcache
$ go build