Skip to content

Commit

Permalink
fix: Go 1.21 cleanup (#329)
Browse files Browse the repository at this point in the history
* chore: update all references to go 1.20 to go 1.21

* chore: clean up some necessary module sync
  • Loading branch information
superlinkx authored Jan 19, 2024
1 parent ec2db71 commit ee430e3
Show file tree
Hide file tree
Showing 25 changed files with 30 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '^1.20.0'
go-version: '^1.21.0'

- name: Install Python
uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion DEVREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ More detailed information regarding [contributing](https://github.com/SpecterOps

- [Just](https://github.com/casey/just)
- [Python 3.10](https://www.python.org/downloads/)
- [Go 1.20](https://go.dev/dl/)
- [Go 1.21](https://go.dev/dl/)
- [Node 18](https://nodejs.dev/en/download/)
- [Yarn 3.6](https://yarnpkg.com/getting-started/install)
- [Docker Desktop](https://www.docker.com/products/docker-desktop/) (or Docker/Docker Compose compatible runtime)
Expand Down
4 changes: 2 additions & 2 deletions cmd/api/src/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/src

go 1.20
go 1.21

require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
Expand All @@ -32,7 +32,7 @@ require (
github.com/gorilla/handlers v1.5.1
github.com/gorilla/mux v1.8.0
github.com/gorilla/schema v1.2.0
github.com/jackc/pgx/v5 v5.4.3
github.com/jackc/pgx/v5 v5.5.1
github.com/jedib0t/go-pretty/v6 v6.4.6
github.com/mattermost/xml-roundtrip-validator v0.1.0
github.com/neo4j/neo4j-go-driver/v5 v5.9.0
Expand Down
5 changes: 4 additions & 1 deletion cmd/api/src/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgS
github.com/jackc/pgx/v4 v4.16.1/go.mod h1:SIhx0D5hoADaiXZVyv+3gSm3LCIIINTVO0PficsvWGQ=
github.com/jackc/pgx/v4 v4.18.1 h1:YP7G1KABtKpB5IHrO9vYwSrCOhs7p3uqhvhhQBptya0=
github.com/jackc/pgx/v4 v4.18.1/go.mod h1:FydWkUyadDmdNH/mHnGob881GawxeEm7TcMCzkb+qQE=
github.com/jackc/pgx/v5 v5.4.3 h1:cxFyXhxlvAifxnkKKdlxv8XqUf59tDlYjnV5YYfsJJY=
github.com/jackc/pgx/v5 v5.5.1 h1:5I9etrGkLrN+2XPCsi6XLlV5DITbSL/xBZdmAxFcXPI=
github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle v1.2.1/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle v1.3.0 h1:eHK/5clGOatcjX3oWGBO/MpxpbHzSwud5EWTSCI+MX0=
github.com/jackc/puddle v1.3.0/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk=
github.com/jedib0t/go-pretty/v6 v6.4.6 h1:v6aG9h6Uby3IusSSEjHaZNXpHFhzqMmjXcPq1Rjl9Jw=
github.com/jedib0t/go-pretty/v6 v6.4.6/go.mod h1:Ndk3ase2CkQbXLLNf5QDHoYb6J9WtVfmHZu9n8rk2xs=
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
Expand Down Expand Up @@ -296,6 +298,7 @@ golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/src/go.tools.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/src

go 1.20
go 1.21

require (
go.uber.org/mock v1.5.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//
// SPDX-License-Identifier: Apache-2.0

go 1.20
go 1.21

use (
./cmd/api/src
Expand Down
2 changes: 1 addition & 1 deletion packages/go/analysis/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/analysis

go 1.20
go 1.21

require (
github.com/RoaringBitmap/roaring v1.3.0
Expand Down
2 changes: 1 addition & 1 deletion packages/go/cache/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/cache

go 1.20
go 1.21

require (
github.com/hashicorp/golang-lru v0.6.0
Expand Down
2 changes: 1 addition & 1 deletion packages/go/conftool/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

module github.com/specterops/bloodhound/conftool

go 1.20
go 1.21
2 changes: 1 addition & 1 deletion packages/go/crypto/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/crypto

go 1.20
go 1.21

require (
go.uber.org/mock v0.2.0
Expand Down
2 changes: 1 addition & 1 deletion packages/go/cypher/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/cypher

go 1.20
go 1.21

require (
github.com/antlr4-go/antlr/v4 v4.13.0
Expand Down
3 changes: 2 additions & 1 deletion packages/go/dawgs/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/dawgs

go 1.20
go 1.21

require (
github.com/RoaringBitmap/roaring v1.3.0
Expand All @@ -42,6 +42,7 @@ require (
github.com/jackc/pgproto3/v2 v2.3.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mschoch/smat v0.2.0 // indirect
Expand Down
12 changes: 1 addition & 11 deletions packages/go/dawgs/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ github.com/RoaringBitmap/roaring v1.3.0/go.mod h1:plvDsJQpxOC5bw8LRteu/MLWHsHez/
github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI=
github.com/axiomhq/hyperloglog v0.0.0-20230201085229-3ddf4bad03dc h1:Keo7wQ7UODUaHcEi7ltENhbAK2VgZjfat6mLy03tQzo=
github.com/axiomhq/hyperloglog v0.0.0-20230201085229-3ddf4bad03dc/go.mod h1:k08r+Yj1PRAmuayFiRK6MYuR5Ve4IuZtTfxErMIh0+c=
github.com/beevik/etree v1.2.0 h1:l7WETslUG/T+xOPs47dtd6jov2Ii/8/OjCldk5fYfQw=
github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA=
github.com/bits-and-blooms/bitset v1.8.0 h1:FD+XqgOZDUxxZ8hzoBFuV9+cGWY9CslN6d5MS5JVb4c=
github.com/bits-and-blooms/bitset v1.8.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/crewjam/saml v0.4.13 h1:TYHggH/hwP7eArqiXSJUvtOPNzQDyQ7vwmwEqlFWhMc=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand All @@ -19,8 +17,6 @@ github.com/dgryski/go-metro v0.0.0-20211217172704-adc40b04c140/go.mod h1:c9O8+fp
github.com/gammazero/deque v0.2.1 h1:qSdsbG6pgp6nL7A0+K/B7s12mcCY/5l5SIUpMOl+dC0=
github.com/gammazero/deque v0.2.1/go.mod h1:LFroj8x4cMYCukHJDbxFCkT+r9AndaJnFMuZDV34tuU=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/jackc/chunkreader v1.0.0 h1:4s39bBR8ByfqH+DKm8rQA3E1LHZWB9XWcrz8fqaZbe0=
github.com/jackc/chunkreader/v2 v2.0.1 h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8=
github.com/jackc/pgconn v1.14.0 h1:vrbA9Ud87g6JdFWkHTJXppVce58qPIdP7N8y0Ml/A7Q=
Expand All @@ -32,15 +28,12 @@ github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
github.com/jackc/pgtype v1.14.0 h1:y+xUdabmyMkJLyApYuPj38mW+aAIqCe5uuBB51rH3Vw=
github.com/jackc/pgx/v4 v4.18.1 h1:YP7G1KABtKpB5IHrO9vYwSrCOhs7p3uqhvhhQBptya0=
github.com/jackc/pgx/v5 v5.4.3 h1:cxFyXhxlvAifxnkKKdlxv8XqUf59tDlYjnV5YYfsJJY=
github.com/jackc/pgx/v5 v5.4.3/go.mod h1:Ig06C2Vu0t5qXC60W8sqIthScaEnFvojjj9dSljmHRA=
github.com/jackc/pgx/v5 v5.5.1 h1:5I9etrGkLrN+2XPCsi6XLlV5DITbSL/xBZdmAxFcXPI=
github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk=
github.com/jonboulle/clockwork v0.4.0 h1:p4Cf1aMWXnXAUh8lVfewRBx1zaTSYKrKMF2g3ST4RZ4=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
github.com/mattermost/xml-roundtrip-validator v0.1.0 h1:RXbVD2UAl7A7nOTR4u7E3ILa4IbtvKBHw64LDsmu9hU=
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
Expand All @@ -52,15 +45,13 @@ github.com/mschoch/smat v0.2.0 h1:8imxQsjDm8yFEAVBe7azKmKSgzSkZXDuKkSq9374khM=
github.com/mschoch/smat v0.2.0/go.mod h1:kc9mz7DoBKqDyiRL7VZN8KvXQMWeTaVnttLRXOlotKw=
github.com/neo4j/neo4j-go-driver/v5 v5.9.0 h1:TYxT0RSiwnvVFia90V7TLnRXv8HkdQQ6rTUaPVoyZ+w=
github.com/neo4j/neo4j-go-driver/v5 v5.9.0/go.mod h1:Vff8OwT7QpLm7L2yYr85XNWe9Rbqlbeb9asNXJTHO4k=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc=
github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU=
github.com/russellhaering/goxmldsig v1.4.0 h1:8UcDh/xGyQiyrW+Fq5t8f+l2DLB1+zlhYzkPUJ7Qhys=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
Expand All @@ -83,4 +74,3 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
2 changes: 1 addition & 1 deletion packages/go/ein/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/ein

go 1.20
go 1.21

require github.com/bloodhoundad/azurehound/v2 v2.0.1

Expand Down
2 changes: 1 addition & 1 deletion packages/go/errors/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/errors

go 1.20
go 1.21

require github.com/stretchr/testify v1.8.4

Expand Down
2 changes: 1 addition & 1 deletion packages/go/graphschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

module github.com/specterops/bloodhound/graphschema

go 1.20
go 1.21
2 changes: 1 addition & 1 deletion packages/go/headers/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

module github.com/specterops/bloodhound/headers

go 1.20
go 1.21
2 changes: 1 addition & 1 deletion packages/go/lab/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/lab

go 1.20
go 1.21

require github.com/stretchr/testify v1.8.4

Expand Down
2 changes: 1 addition & 1 deletion packages/go/log/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/log

go 1.20
go 1.21

require (
github.com/rs/zerolog v1.29.1
Expand Down
2 changes: 1 addition & 1 deletion packages/go/mediatypes/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

module github.com/specterops/bloodhound/mediatypes

go 1.20
go 1.21
2 changes: 1 addition & 1 deletion packages/go/params/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

module github.com/specterops/bloodhound/params

go 1.20
go 1.21

require github.com/gorilla/mux v1.8.0
2 changes: 1 addition & 1 deletion packages/go/schemagen/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/schemagen

go 1.20
go 1.21

require (
cuelang.org/go v0.5.0
Expand Down
2 changes: 1 addition & 1 deletion packages/go/slices/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

module github.com/specterops/bloodhound/slices

go 1.20
go 1.21

require github.com/stretchr/testify v1.8.4

Expand Down
2 changes: 1 addition & 1 deletion packages/go/stbernard/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

module github.com/specterops/bloodhound/packages/go/stbernard

go 1.20
go 1.21

require golang.org/x/mod v0.11.0
2 changes: 1 addition & 1 deletion tools/docker-compose/api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ WORKDIR /tmp/azurehound/artifacts
RUN 7z a -tzip -mx9 azurehound-$AZUREHOUND_VERSION.zip azurehound-*
RUN sha256sum azurehound-$AZUREHOUND_VERSION.zip > azurehound-$AZUREHOUND_VERSION.zip.sha256

FROM docker.io/library/golang:1.20
FROM docker.io/library/golang:1.21
ARG SHARPHOUND_VERSION
ARG AZUREHOUND_VERSION
ENV GOFLAGS="-buildvcs=false"
Expand Down

0 comments on commit ee430e3

Please sign in to comment.