Skip to content

Commit

Permalink
deps: bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
criyle committed Feb 3, 2024
1 parent 3496e24 commit 485aa02
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 70 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ go-judge.h
cmd/go-judge/version/version.txt

dist/
.vscode
6 changes: 2 additions & 4 deletions env/env_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,11 @@ func newCgroup(c Config) (cgroup.Cgroup, error) {
}
ch := make(chan string, 1)
if _, err := conn.StartTransientUnitContext(context.TODO(), scopeName, "replace", properties, ch); err != nil {
c.Error("Failed to start transient unit ", err)
return nil, err
return nil, fmt.Errorf("failed to start transient unit: %w", err)
}
s := <-ch
if s != "done" {
c.Error("Starting transient unit returns ", s)
return nil, err
return nil, fmt.Errorf("starting transient unit returns error: %w", err)
}
scopeName, err := cgroup.GetCurrentCgroupPrefix()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion env/pool/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (p *pool) Put(env envexec.Environment) {
if !ok {
panic("invalid environment put")
}
// If contain died after execution, don't put it into pool and destory it
// If contain died after execution, don't put it into pool and destroy it
if err := e.Reset(); err != nil {
e.Destroy()
return
Expand Down
37 changes: 18 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ go 1.21

require (
github.com/coreos/go-systemd/v22 v22.5.0
github.com/creack/pty v1.1.20
github.com/creack/pty v1.1.21
github.com/criyle/go-sandbox v0.10.0
github.com/elastic/go-seccomp-bpf v1.3.0
github.com/elastic/go-seccomp-bpf v1.4.0
github.com/elastic/go-ucfg v0.8.6
github.com/gin-contrib/zap v0.2.0
github.com/gin-gonic/gin v1.9.1
Expand All @@ -16,20 +16,20 @@ require (
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/koding/multiconfig v0.0.0-20171124222453-69c27309b2d7
github.com/prometheus/client_golang v1.17.0
github.com/prometheus/client_golang v1.18.0
github.com/zsais/go-gin-prometheus v0.1.0
go.uber.org/zap v1.26.0
golang.org/x/crypto v0.17.0
golang.org/x/net v0.18.0
golang.org/x/sync v0.5.0
golang.org/x/sys v0.15.0
google.golang.org/grpc v1.59.0
google.golang.org/protobuf v1.31.0
golang.org/x/crypto v0.18.0
golang.org/x/net v0.20.0
golang.org/x/sync v0.6.0
golang.org/x/sys v0.16.0
google.golang.org/grpc v1.61.0
google.golang.org/protobuf v1.32.0
gopkg.in/yaml.v2 v2.4.0
)

require (
cloud.google.com/go/compute v1.23.2 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bytedance/sonic v1.10.2 // indirect
Expand All @@ -42,27 +42,26 @@ require (
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.16.0 // indirect
github.com/go-playground/validator/v10 v10.17.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/leodido/go-urn v1.3.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pelletier/go-toml/v2 v2.1.1 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.45.0 // indirect
github.com/prometheus/common v0.46.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/arch v0.6.0 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/arch v0.7.0 // indirect
golang.org/x/term v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

Expand Down
Loading

0 comments on commit 485aa02

Please sign in to comment.