Skip to content

Commit 86eb3be

Browse files
authored
Merge pull request #3103 from thaJeztah/use_atomicwriter
migrate to use github.com/moby/sys/atomicwriter
2 parents a05a166 + b7b5a3a commit 86eb3be

File tree

7 files changed

+455
-2
lines changed

7 files changed

+455
-2
lines changed

commands/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import (
4242
"github.com/docker/cli/cli/command"
4343
dockeropts "github.com/docker/cli/opts"
4444
"github.com/docker/docker/api/types/versions"
45-
"github.com/docker/docker/pkg/atomicwriter"
4645
"github.com/moby/buildkit/client"
4746
"github.com/moby/buildkit/exporter/containerimage/exptypes"
4847
"github.com/moby/buildkit/frontend/subrequests"
@@ -53,6 +52,7 @@ import (
5352
solverpb "github.com/moby/buildkit/solver/pb"
5453
"github.com/moby/buildkit/util/grpcerrors"
5554
"github.com/moby/buildkit/util/progress/progressui"
55+
"github.com/moby/sys/atomicwriter"
5656
"github.com/morikuni/aec"
5757
"github.com/pkg/errors"
5858
"github.com/sirupsen/logrus"

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ require (
3131
github.com/mitchellh/hashstructure/v2 v2.0.2
3232
github.com/moby/buildkit v0.21.0-rc1
3333
github.com/moby/go-archive v0.0.0-20250404171912-21f3f3385ab7
34+
github.com/moby/sys/atomicwriter v0.1.0
3435
github.com/moby/sys/mountinfo v0.7.2
3536
github.com/moby/sys/signal v0.7.1
3637
github.com/morikuni/aec v1.0.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkV
291291
github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc=
292292
github.com/moby/spdystream v0.4.0 h1:Vy79D6mHeJJjiPdFEL2yku1kl0chZpJfZcPpb16BRl8=
293293
github.com/moby/spdystream v0.4.0/go.mod h1:xBAYlnt/ay+11ShkdFKNAG7LsyK/tmNBVvVOwrfMgdI=
294+
github.com/moby/sys/atomicwriter v0.1.0 h1:kw5D/EqkBwsBFi0ss9v1VG3wIkVhzGvLklJ+w3A14Sw=
295+
github.com/moby/sys/atomicwriter v0.1.0/go.mod h1:Ul8oqv2ZMNHOceF643P6FKPXeCmYtlQMvpizfsSoaWs=
294296
github.com/moby/sys/mountinfo v0.7.2 h1:1shs6aH5s4o5H2zQLn796ADW1wMrIwHsyJ2v9KouLrg=
295297
github.com/moby/sys/mountinfo v0.7.2/go.mod h1:1YOa8w8Ih7uW0wALDUgT1dTTSBrZ+HiBLGws92L2RU4=
296298
github.com/moby/sys/sequential v0.6.0 h1:qrx7XFUd/5DxtqcoH1h438hF5TmOvzC/lspjy7zgvCU=

util/confutil/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"sync"
99

1010
"github.com/docker/cli/cli/command"
11-
"github.com/docker/docker/pkg/atomicwriter"
1211
"github.com/moby/buildkit/cmd/buildkitd/config"
12+
"github.com/moby/sys/atomicwriter"
1313
"github.com/pelletier/go-toml"
1414
"github.com/pkg/errors"
1515
fs "github.com/tonistiigi/fsutil/copy"

vendor/github.com/moby/sys/atomicwriter/LICENSE

Lines changed: 202 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)