Merge pull request #7743 from containers/dependabot/go_modules/github.com/containers/buildah-1.16.2
Bump github.com/containers/buildah from 1.16.1 to 1.16.2
This commit is contained in:
commit
3059bf8ef0
2
go.mod
2
go.mod
|
@ -11,7 +11,7 @@ require (
|
|||
github.com/containerd/containerd v1.4.1 // indirect
|
||||
github.com/containernetworking/cni v0.8.0
|
||||
github.com/containernetworking/plugins v0.8.7
|
||||
github.com/containers/buildah v1.16.1
|
||||
github.com/containers/buildah v1.16.2
|
||||
github.com/containers/common v0.22.0
|
||||
github.com/containers/conmon v2.0.20+incompatible
|
||||
github.com/containers/image/v5 v5.6.0
|
||||
|
|
4
go.sum
4
go.sum
|
@ -70,8 +70,8 @@ github.com/containernetworking/cni v0.8.0 h1:BT9lpgGoH4jw3lFC7Odz2prU5ruiYKcgAjM
|
|||
github.com/containernetworking/cni v0.8.0/go.mod h1:LGwApLUm2FpoOfxTDEeq8T9ipbpZ61X79hmU3w8FmsY=
|
||||
github.com/containernetworking/plugins v0.8.7 h1:bU7QieuAp+sACI2vCzESJ3FoT860urYP+lThyZkb/2M=
|
||||
github.com/containernetworking/plugins v0.8.7/go.mod h1:R7lXeZaBzpfqapcAbHRW8/CYwm0dHzbz0XEjofx0uB0=
|
||||
github.com/containers/buildah v1.16.1 h1:kxxZbW0in7cFv/AEQtSPNQ06aemYN5fsya31IS9xd2g=
|
||||
github.com/containers/buildah v1.16.1/go.mod h1:i1XqXgpCROnfcq4oNtfrFEk7UzNDxLJ/PZ+CnPyoIq8=
|
||||
github.com/containers/buildah v1.16.2 h1:u8RA0r9sp3d5df/QRm0glG7L6ZN40UVJcYedwcZGt8w=
|
||||
github.com/containers/buildah v1.16.2/go.mod h1:i1XqXgpCROnfcq4oNtfrFEk7UzNDxLJ/PZ+CnPyoIq8=
|
||||
github.com/containers/common v0.21.0/go.mod h1:8w8SVwc+P2p1MOnRMbSKNWXt1Iwd2bKFu2LLZx55DTM=
|
||||
github.com/containers/common v0.22.0 h1:MjJIMka4pJddHsfZpQCF7jOmX6vXqMs0ojDeYmPKoSk=
|
||||
github.com/containers/common v0.22.0/go.mod h1:qsLcLHM7ha5Nc+JDp5duBwfwEfrnlfjXL/K8HO96QHw=
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
# Changelog
|
||||
|
||||
## v1.16.2 (2020-09-21)
|
||||
Add(): fix handling of relative paths with no ContextDir
|
||||
|
||||
## v1.16.1 (2020-09-10)
|
||||
copier.Get(): hard link targets shouldn't be relative paths
|
||||
|
||||
|
|
|
@ -151,18 +151,26 @@ func (b *Builder) Add(destination string, extract bool, options AddAndCopyOption
|
|||
}()
|
||||
|
||||
contextDir := options.ContextDir
|
||||
if contextDir == "" {
|
||||
currentDir := options.ContextDir
|
||||
if options.ContextDir == "" {
|
||||
contextDir = string(os.PathSeparator)
|
||||
currentDir, err = os.Getwd()
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error determining current working directory")
|
||||
}
|
||||
}
|
||||
|
||||
// Figure out what sorts of sources we have.
|
||||
var localSources, remoteSources []string
|
||||
for _, src := range sources {
|
||||
for i, src := range sources {
|
||||
if sourceIsRemote(src) {
|
||||
remoteSources = append(remoteSources, src)
|
||||
continue
|
||||
}
|
||||
localSources = append(localSources, src)
|
||||
if !filepath.IsAbs(src) && options.ContextDir == "" {
|
||||
sources[i] = filepath.Join(currentDir, src)
|
||||
}
|
||||
localSources = append(localSources, sources[i])
|
||||
}
|
||||
|
||||
// Check how many items our local source specs matched. Each spec
|
||||
|
|
|
@ -28,7 +28,7 @@ const (
|
|||
Package = "buildah"
|
||||
// Version for the Package. Bump version in contrib/rpm/buildah.spec
|
||||
// too.
|
||||
Version = "1.16.1"
|
||||
Version = "1.16.2"
|
||||
// The value we use to identify what type of information, currently a
|
||||
// serialized Builder structure, we are using as per-container state.
|
||||
// This should only be changed when we make incompatible changes to
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
- Changelog for v1.16.2 (2020-09-21)
|
||||
* Add(): fix handling of relative paths with no ContextDir
|
||||
|
||||
- Changelog for v1.16.1 (2020-09-10)
|
||||
* copier.Get(): hard link targets shouldn't be relative paths
|
||||
|
|
|
@ -67,7 +67,7 @@ github.com/containernetworking/plugins/pkg/utils/hwaddr
|
|||
github.com/containernetworking/plugins/pkg/utils/sysctl
|
||||
github.com/containernetworking/plugins/plugins/ipam/host-local/backend
|
||||
github.com/containernetworking/plugins/plugins/ipam/host-local/backend/allocator
|
||||
# github.com/containers/buildah v1.16.1
|
||||
# github.com/containers/buildah v1.16.2
|
||||
github.com/containers/buildah
|
||||
github.com/containers/buildah/bind
|
||||
github.com/containers/buildah/chroot
|
||||
|
|
Loading…
Reference in New Issue