Skip to content

Commit

Permalink
update go.mods again, remove go 1.18 from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fhackett committed Nov 15, 2024
1 parent ac5da2a commit 884f424
Show file tree
Hide file tree
Showing 26 changed files with 48 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
java-version: ['11', '21']
golang-version: ['1.18', '1.23']
golang-version: ['1.22', '1.23']

steps:
- uses: actions/checkout@v4
Expand Down
23 changes: 23 additions & 0 deletions go_versions.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//val minGoVersion = "1.22"

os.walk(os.pwd)
.filter(os.isDir)
.filter(dir => os.exists(dir / "go.mod"))
.foreach { dir =>
println(s"updating $dir...")

os.call(List("go", "get", "-u"), cwd = dir)
os.call(List("go", "mod", "tidy"), cwd = dir)

// val modLines = os.read.lines(dir / "go.mod")

// os.write.over(dir / "go.mod", modLines
// .iterator
// .flatMap {
// case s"go $version" => Iterator.single(s"go $minGoVersion")
// case s"toolchain $_" => Iterator.empty
// case line => Iterator.single(line)
// }
// .map(_ ++ "\n")
// )
}
2 changes: 1 addition & 1 deletion systems/dqueue/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion systems/gcounter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion systems/loadbalancer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion systems/locksvc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion systems/nestedcrdtimpl/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.23.2
replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require (
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6
github.com/benbjohnson/immutable v0.4.3
)

Expand Down
2 changes: 1 addition & 1 deletion systems/pbkvs/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.23.2
replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require (
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6
github.com/spf13/viper v1.15.0
)

Expand Down
2 changes: 1 addition & 1 deletion systems/proxy/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion systems/raftkvs/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.23.2
replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require (
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6
github.com/benbjohnson/immutable v0.4.3
github.com/dgraph-io/badger/v3 v3.2103.5
github.com/pkg/profile v1.7.0
Expand Down
2 changes: 1 addition & 1 deletion systems/raftres/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.23.2
replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require (
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6
github.com/benbjohnson/immutable v0.4.3
github.com/dgraph-io/badger/v3 v3.2103.5
github.com/spf13/viper v1.19.0
Expand Down
2 changes: 1 addition & 1 deletion systems/replicatedkv/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion systems/shcounter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion systems/shopcart/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.23.2
replace github.com/UBC-NSS/pgo/distsys => ../../distsys

require (
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6
github.com/spf13/viper v1.19.0
)

Expand Down
2 changes: 1 addition & 1 deletion test/files/general/ExprTests.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion test/files/general/IndexingLocals.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion test/files/general/NonDetExploration.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion test/files/general/PBFail4_bug125.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion test/files/general/ProcedureSpaghetti.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion test/files/general/bug2_124.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion test/files/general/bug_119.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion test/files/general/hello.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.23.2
replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require (
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6
github.com/dgraph-io/badger/v3 v3.2103.5
)

Expand Down
2 changes: 1 addition & 1 deletion test/files/general/raft.tla.gotests.ignore/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion test/files/general/raftkvs.tla.gotests.ignore/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.23.2
replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require (
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6
github.com/benbjohnson/immutable v0.4.3
github.com/dgraph-io/badger/v3 v3.2103.5
)
Expand Down
2 changes: 1 addition & 1 deletion test/files/gogen/EmptyBlock.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion test/files/gogen/bug_167.tla.gotests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toolchain go1.23.2

replace github.com/UBC-NSS/pgo/distsys => ../../../../distsys

require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115151405-18034beb253a
require github.com/UBC-NSS/pgo/distsys v0.0.0-20241115155132-ac5da2a2c7c6

require (
github.com/benbjohnson/immutable v0.4.3 // indirect
Expand Down

0 comments on commit 884f424

Please sign in to comment.