Skip to content

Commit ef2cd0a

Browse files
committed
resolve merge conflict
1 parent de8fe41 commit ef2cd0a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2590
-2217
lines changed

go.mod

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ require (
1010
github.com/alexbrainman/sspi v0.0.0-20210105120005-909beea2cc74
1111
github.com/alicebob/sqlittle v1.4.0
1212
github.com/apcera/gssapi v0.0.0-00010101000000-000000000000
13-
github.com/aws/aws-sdk-go v1.55.6
13+
github.com/aws/aws-sdk-go v1.55.7
1414
github.com/blang/semver v3.5.1+incompatible
1515
github.com/containers/image/v5 v5.30.1
1616
github.com/containers/storage v1.58.0
17-
github.com/coreos/go-oidc/v3 v3.14.0
17+
github.com/coreos/go-oidc/v3 v3.14.1
1818
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
1919
github.com/distribution/distribution/v3 v3.0.0-20230519140516-983358f8e250
2020
github.com/docker/docker v25.0.6+incompatible
2121
github.com/docker/go-units v0.5.0
2222
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7
23-
github.com/elazarl/goproxy v1.2.3
24-
github.com/fsnotify/fsnotify v1.7.0
23+
github.com/elazarl/goproxy v1.7.2
24+
github.com/fsnotify/fsnotify v1.9.0
2525
github.com/fsouza/go-dockerclient v1.10.0
2626
github.com/ghodss/yaml v1.0.0
2727
github.com/go-ldap/ldap/v3 v3.4.3
@@ -31,15 +31,14 @@ require (
3131
github.com/joelanford/ignore v0.1.1
3232
github.com/moby/buildkit v0.12.5
3333
github.com/moby/sys/sequential v0.5.0
34-
github.com/moby/term v0.5.0
34+
github.com/moby/term v0.5.2
3535
github.com/opencontainers/go-digest v1.0.0
3636
github.com/opencontainers/image-spec v1.1.0
3737
github.com/openshift/api v0.0.0-20250710082954-674ad74beffc
3838
github.com/openshift/build-machinery-go v0.0.0-20250602125535-1b6d00b8c37c
3939
github.com/openshift/client-go v0.0.0-20250710075018-396b36f983ee
40-
github.com/openshift/library-go v0.0.0-20250710220942-4b0a8a2db0c4
40+
github.com/openshift/library-go v0.0.0-20250711143941-47604345e7ea
4141
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
42-
github.com/pkg/errors v0.9.1
4342
github.com/prometheus/client_golang v1.22.0
4443
github.com/russross/blackfriday v1.6.0
4544
github.com/spf13/cobra v1.9.1
@@ -51,7 +50,6 @@ require (
5150
golang.org/x/sync v0.16.0
5251
golang.org/x/sys v0.34.0
5352
golang.org/x/term v0.33.0
54-
gopkg.in/yaml.v3 v3.0.1
5553
k8s.io/api v0.33.2
5654
k8s.io/apiextensions-apiserver v0.33.2
5755
k8s.io/apimachinery v0.33.2
@@ -67,7 +65,7 @@ require (
6765
)
6866

6967
require (
70-
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
68+
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
7169
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e // indirect
7270
github.com/BurntSushi/toml v1.5.0 // indirect
7371
github.com/Microsoft/go-winio v0.6.2 // indirect
@@ -159,6 +157,7 @@ require (
159157
github.com/opencontainers/runtime-spec v1.2.1 // indirect
160158
github.com/opencontainers/selinux v1.12.0 // indirect
161159
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
160+
github.com/pkg/errors v0.9.1 // indirect
162161
github.com/pkg/profile v1.7.0 // indirect
163162
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
164163
github.com/proglottis/gpgme v0.1.3 // indirect
@@ -182,7 +181,7 @@ require (
182181
go.opentelemetry.io/otel v1.33.0 // indirect
183182
go.opentelemetry.io/otel/trace v1.33.0 // indirect
184183
go.yaml.in/yaml/v2 v2.4.2 // indirect
185-
go.yaml.in/yaml/v3 v3.0.3 // indirect
184+
go.yaml.in/yaml/v3 v3.0.4 // indirect
186185
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
187186
golang.org/x/text v0.27.0 // indirect
188187
golang.org/x/time v0.9.0 // indirect
@@ -193,6 +192,7 @@ require (
193192
gopkg.in/inf.v0 v0.9.1 // indirect
194193
gopkg.in/warnings.v0 v0.1.2 // indirect
195194
gopkg.in/yaml.v2 v2.4.0 // indirect
195+
gopkg.in/yaml.v3 v3.0.1 // indirect
196196
k8s.io/component-helpers v0.33.2 // indirect
197197
k8s.io/kube-aggregator v0.33.2 // indirect
198198
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect

go.sum

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/AaronO/go-git-http v0.0.0-20161214145340-1d9485b3a98f h1:x/RDwGRneK2/
44
github.com/AaronO/go-git-http v0.0.0-20161214145340-1d9485b3a98f/go.mod h1:+6Yuq73F9068Na+mSBNXCvyuxvgw4f/g5ii40e3U8Sc=
55
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU=
66
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8=
7-
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0=
8-
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
7+
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEKWjV8V+WSxDXJ4NFATAsZjh8iIbsQIg=
8+
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
99
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e h1:ZU22z/2YRFLyf/P4ZwUYSdNCWsMEI0VeyrFoI2rAhJQ=
1010
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e/go.mod h1:chxPXzSsl7ZWRAuOIE23GDNzjWuZquvFlgA8xmpunjU=
1111
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
@@ -37,8 +37,8 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkY
3737
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
3838
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
3939
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
40-
github.com/aws/aws-sdk-go v1.55.6 h1:cSg4pvZ3m8dgYcgqB97MrcdjUmZ1BeMYKUxMMB89IPk=
41-
github.com/aws/aws-sdk-go v1.55.6/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
40+
github.com/aws/aws-sdk-go v1.55.7 h1:UJrkFq7es5CShfBwlWAC8DA077vp8PyVbQd3lqLiztE=
41+
github.com/aws/aws-sdk-go v1.55.7/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
4242
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
4343
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
4444
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
@@ -74,8 +74,8 @@ github.com/containers/ocicrypt v1.1.9 h1:2Csfba4jse85Raxk5HIyEk8OwZNjRvfkhEGijOj
7474
github.com/containers/ocicrypt v1.1.9/go.mod h1:dTKx1918d8TDkxXvarscpNVY+lyPakPNFN4jwA9GBys=
7575
github.com/containers/storage v1.58.0 h1:Q7SyyCCjqgT3wYNgRNIL8o/wUS92heIj2/cc8Sewvcc=
7676
github.com/containers/storage v1.58.0/go.mod h1:w7Jl6oG+OpeLGLzlLyOZPkmUso40kjpzgrHUk5tyBlo=
77-
github.com/coreos/go-oidc/v3 v3.14.0 h1:ejxWVps1l5tmKQo25Nxv7vmZ9Usj8Sj7knoF2MnH7r4=
78-
github.com/coreos/go-oidc/v3 v3.14.0/go.mod h1:HaZ3szPaZ0e4r6ebqvsLWlk2Tn+aejfmrfah6hnSYEU=
77+
github.com/coreos/go-oidc/v3 v3.14.1 h1:9ePWwfdwC4QKRlCXsJGou56adA/owXczOzwKdOumLqk=
78+
github.com/coreos/go-oidc/v3 v3.14.1/go.mod h1:HaZ3szPaZ0e4r6ebqvsLWlk2Tn+aejfmrfah6hnSYEU=
7979
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
8080
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
8181
github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=
@@ -106,8 +106,8 @@ github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4
106106
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
107107
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 h1:UhxFibDNY/bfvqU5CAUmr9zpesgbU6SWc8/B4mflAE4=
108108
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
109-
github.com/elazarl/goproxy v1.2.3 h1:xwIyKHbaP5yfT6O9KIeYJR5549MXRQkoQMRXGztz8YQ=
110-
github.com/elazarl/goproxy v1.2.3/go.mod h1:YfEbZtqP4AetfO6d40vWchF3znWX7C7Vd6ZMfdL8z64=
109+
github.com/elazarl/goproxy v1.7.2 h1:Y2o6urb7Eule09PjlhQRGNsqRfPmYI3KKQLFpCAV3+o=
110+
github.com/elazarl/goproxy v1.7.2/go.mod h1:82vkLNir0ALaW14Rc399OTTjyNREgmdL2cVoIbS6XaE=
111111
github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g=
112112
github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
113113
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f h1:Wl78ApPPB2Wvf/TIe2xdyJxTlb6obmF18d8QdkxNDu4=
@@ -117,8 +117,8 @@ github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwo
117117
github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw=
118118
github.com/felixge/fgprof v0.9.4 h1:ocDNwMFlnA0NU0zSB3I52xkO4sFXk80VK9lXjLClu88=
119119
github.com/felixge/fgprof v0.9.4/go.mod h1:yKl+ERSa++RYOs32d8K6WEXCB4uXdLls4ZaZPpayhMM=
120-
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
121-
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
120+
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
121+
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
122122
github.com/fsouza/go-dockerclient v1.10.0 h1:ppSBsbR60I1DFbV4Ag7LlHlHakHFRNLk9XakATW1yVQ=
123123
github.com/fsouza/go-dockerclient v1.10.0/go.mod h1:+iNzAW78AzClIBTZ6WFjkaMvOgz68GyCJ236b1opLTs=
124124
github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E=
@@ -361,8 +361,8 @@ github.com/moby/sys/sequential v0.5.0 h1:OPvI35Lzn9K04PBbCLW0g4LcFAJgHsvXsRyewg5
361361
github.com/moby/sys/sequential v0.5.0/go.mod h1:tH2cOOs5V9MlPiXcQzRC+eEyab644PWKGRYaaV5ZZlo=
362362
github.com/moby/sys/user v0.4.0 h1:jhcMKit7SA80hivmFJcbB1vqmw//wU61Zdui2eQXuMs=
363363
github.com/moby/sys/user v0.4.0/go.mod h1:bG+tYYYJgaMtRKgEmuueC0hJEAZWwtIbZTB+85uoHjs=
364-
github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0=
365-
github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y=
364+
github.com/moby/term v0.5.2 h1:6qk3FJAFDs6i/q3W/pQ97SX192qKfZgGjCQqfCJkgzQ=
365+
github.com/moby/term v0.5.2/go.mod h1:d3djjFCrjnB+fl8NJux+EJzu0msscUP+f8it8hPkFLc=
366366
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
367367
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
368368
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
@@ -405,8 +405,8 @@ github.com/openshift/client-go v0.0.0-20250710075018-396b36f983ee h1:tOtrrxfDEW8
405405
github.com/openshift/client-go v0.0.0-20250710075018-396b36f983ee/go.mod h1:zhRiYyNMk89llof2qEuGPWPD+joQPhCRUc2IK0SB510=
406406
github.com/openshift/gssapi v0.0.0-20161010215902-5fb4217df13b h1:it0YPE/evO6/m8t8wxis9KFI2F/aleOKsI6d9uz0cEk=
407407
github.com/openshift/gssapi v0.0.0-20161010215902-5fb4217df13b/go.mod h1:tNrEB5k8SI+g5kOlsCmL2ELASfpqEofI0+FLBgBdN08=
408-
github.com/openshift/library-go v0.0.0-20250710220942-4b0a8a2db0c4 h1:Yp0/n0g2+3nyB/cEW8Hjmrv+1ix3lVcpfpwD4epAWa4=
409-
github.com/openshift/library-go v0.0.0-20250710220942-4b0a8a2db0c4/go.mod h1:tptKNust9MdRI0p90DoBSPHIrBa9oh+Rok59tF0vT8c=
408+
github.com/openshift/library-go v0.0.0-20250711143941-47604345e7ea h1:0BNis5UGo5Z7J9GtRY1nw/pt8hWxIZqvfqnqH3eV5cs=
409+
github.com/openshift/library-go v0.0.0-20250711143941-47604345e7ea/go.mod h1:tptKNust9MdRI0p90DoBSPHIrBa9oh+Rok59tF0vT8c=
410410
github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0=
411411
github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE=
412412
github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI=
@@ -535,8 +535,8 @@ go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
535535
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
536536
go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI=
537537
go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU=
538-
go.yaml.in/yaml/v3 v3.0.3 h1:bXOww4E/J3f66rav3pX3m8w6jDE4knZjGOw8b5Y6iNE=
539-
go.yaml.in/yaml/v3 v3.0.3/go.mod h1:tBHosrYAkRZjRAOREWbDnBXUf08JOwYq++0QNwQiWzI=
538+
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
539+
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
540540
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
541541
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
542542
golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=

pkg/cli/admin/catalog/mirror_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313
operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
1414
"github.com/openshift/library-go/pkg/image/reference"
1515
"github.com/openshift/oc/pkg/cli/image/imagesource"
16-
"gopkg.in/yaml.v3"
1716
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
1817
"k8s.io/apimachinery/pkg/runtime"
18+
yaml "sigs.k8s.io/yaml/goyaml.v3"
1919
)
2020

2121
func TestWriteToMapping(t *testing.T) {

pkg/cli/admin/migrate/icsp/icsp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"path/filepath"
1111

1212
"github.com/spf13/cobra"
13-
"gopkg.in/yaml.v3"
13+
yaml "sigs.k8s.io/yaml/goyaml.v3"
1414

1515
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1616
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

pkg/cli/admin/release/extract.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import (
3232
"github.com/openshift/oc/pkg/cli/image/imagesource"
3333
imagemanifest "github.com/openshift/oc/pkg/cli/image/manifest"
3434
"github.com/openshift/oc/pkg/cli/image/workqueue"
35-
"github.com/pkg/errors"
3635
)
3736

3837
var (
@@ -429,7 +428,7 @@ func (o *ExtractOptions) Run(ctx context.Context) error {
429428
klog.V(4).Infof("Found manifest %s", hdr.Name)
430429
ms, err := manifest.ParseManifests(r)
431430
if err != nil {
432-
manifestErrs = append(manifestErrs, errors.Wrapf(err, "error parsing %s", hdr.Name))
431+
manifestErrs = append(manifestErrs, fmt.Errorf("error parsing %s: %w", hdr.Name, err))
433432
return true, nil
434433
}
435434

@@ -453,7 +452,7 @@ func (o *ExtractOptions) Run(ctx context.Context) error {
453452
if expectedProviderSpecKind != "" {
454453
kind, _, err := unstructured.NestedString(m.Obj.Object, "spec", "providerSpec", "kind")
455454
if err != nil {
456-
return false, errors.Wrap(err, "error extracting cred request kind")
455+
return false, fmt.Errorf("error extracting cred request kind: %w", err)
457456
}
458457
if kind != expectedProviderSpecKind {
459458
continue
@@ -471,18 +470,18 @@ func (o *ExtractOptions) Run(ctx context.Context) error {
471470
if o.Directory != "" {
472471
out, err = os.Create(filepath.Join(o.Directory, hdr.Name))
473472
if err != nil {
474-
return false, errors.Wrapf(err, "error creating manifest in %s", hdr.Name)
473+
return false, fmt.Errorf("error creating manifest in %s: %w", hdr.Name, err)
475474
}
476475
}
477476
if out != nil {
478477
for _, m := range manifestsToWrite {
479478
yamlBytes, err := yaml.JSONToYAML(m.Raw)
480479
if err != nil {
481-
return false, errors.Wrapf(err, "error serializing manifest in %s", hdr.Name)
480+
return false, fmt.Errorf("error serializing manifest in %s: %w", hdr.Name, err)
482481
}
483482
fmt.Fprintf(out, "---\n")
484483
if _, err := out.Write(yamlBytes); err != nil {
485-
return false, errors.Wrapf(err, "error writing manifest in %s", hdr.Name)
484+
return false, fmt.Errorf("error writing manifest in %s: %w", hdr.Name, err)
486485
}
487486
}
488487
}

pkg/cli/extract/extract.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ package extract
22

33
import (
44
"bytes"
5+
"errors"
56
"fmt"
67
"io"
78
"os"
89
"path/filepath"
910

10-
"github.com/pkg/errors"
11-
1211
"github.com/spf13/cobra"
1312

1413
corev1 "k8s.io/api/core/v1"
@@ -113,7 +112,7 @@ func (o *ExtractOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args [
113112
}
114113

115114
if !o.Overwrite {
116-
return errors.Wrap(err, "use --confirm if you want to create target directory")
115+
return fmt.Errorf("use --confirm if you want to create target directory: %w", err)
117116
}
118117

119118
if err = os.MkdirAll(o.TargetDirectory, os.ModePerm); err != nil {

pkg/helpers/newapp/docker/dockerfile/shell_parser.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ package dockerfile
99

1010
import (
1111
"bytes"
12+
"errors"
13+
"fmt"
1214
"os"
1315
"path/filepath"
1416
"strings"
1517
"text/scanner"
1618
"unicode"
17-
18-
"github.com/pkg/errors"
1919
)
2020

2121
// ShellLex performs shell word splitting and variable expansion.
@@ -71,7 +71,7 @@ type shellWord struct {
7171
func (sw *shellWord) process(source string) (string, []string, error) {
7272
word, words, err := sw.processStopOn(scanner.EOF)
7373
if err != nil {
74-
err = errors.Wrapf(err, "failed to process %q", source)
74+
err = fmt.Errorf("failed to process %q: %w", source, err)
7575
}
7676
return word, words, err
7777
}
@@ -305,10 +305,10 @@ func (sw *shellWord) processDollar() (string, error) {
305305
return newValue, nil
306306

307307
default:
308-
return "", errors.Errorf("unsupported modifier (%c) in substitution", modifier)
308+
return "", fmt.Errorf("unsupported modifier (%c) in substitution", modifier)
309309
}
310310
}
311-
return "", errors.Errorf("missing ':' in substitution")
311+
return "", fmt.Errorf("missing ':' in substitution")
312312
}
313313

314314
func (sw *shellWord) processName() string {

vendor/github.com/Azure/go-ansiterm/osc_string_state.go

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

vendor/github.com/aws/aws-sdk-go/aws/version.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download.go

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

0 commit comments

Comments
 (0)