Skip to content

Commit 0aecaf3

Browse files
fix s2i
Signed-off-by: stoneshi-yunify <[email protected]>
1 parent 1340e8d commit 0aecaf3

File tree

1 file changed

+1
-1
lines changed
  • pkg/build/strategies/sti

1 file changed

+1
-1
lines changed

pkg/build/strategies/sti/sti.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func New(client dockerpkg.Client, config *api.Config, fs fs.FileSystem, override
188188
// of the build itself. Callers should check the Success field of the result
189189
// to determine whether a build succeeded or not.
190190
func (builder *STI) Build(config *api.Config) (*api.Result, error) {
191-
delete config.Labels[constants.BuildSourceLocationLabel]
191+
delete(config.Labels, constants.BuildSourceLocationLabel)
192192
builder.result = &api.Result{}
193193

194194
if len(builder.config.CallbackURL) > 0 {

0 commit comments

Comments
 (0)