Skip to content

Commit

Permalink
chore(pkg): pass a nil linter to tests that now require is
Browse files Browse the repository at this point in the history
  • Loading branch information
SasSwart committed Oct 21, 2024
1 parent b509184 commit 4a667d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pkg/executor/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ func Test_stageBuilder_populateCompositeKey(t *testing.T) {
}

fc1 := util.FileContext{Root: "workspace"}
dockerCommand1, err := commands.GetCommand(instructions1[0], fc1, false, true, true, nil)
dockerCommand1, err := commands.GetCommand(instructions1[0], fc1, false, true, true, nil, nil)
if err != nil {
t.Fatal(err)
}
Expand All @@ -911,7 +911,7 @@ func Test_stageBuilder_populateCompositeKey(t *testing.T) {
}

fc2 := util.FileContext{Root: "workspace"}
dockerCommand2, err := commands.GetCommand(instructions[0], fc2, false, true, true, nil)
dockerCommand2, err := commands.GetCommand(instructions[0], fc2, false, true, true, nil, nil)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -1608,6 +1608,7 @@ func getCommands(fileContext util.FileContext, cmds []instructions.Command, cach
cacheCopy,
cacheRun,
nil,
nil,
)
if err != nil {
panic(err)
Expand Down Expand Up @@ -1703,7 +1704,7 @@ func Test_stageBuild_populateCompositeKeyForCopyCommand(t *testing.T) {
}

fc := util.FileContext{Root: "workspace"}
copyCommand, err := commands.GetCommand(instructions[0], fc, false, true, true, nil)
copyCommand, err := commands.GetCommand(instructions[0], fc, false, true, true, nil, nil)
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/image/image_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func parse(s string) ([]instructions.Stage, error) {
if err != nil {
return nil, err
}
stages, _, err := instructions.Parse(p.AST)
stages, _, err := instructions.Parse(p.AST, nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4a667d0

Please sign in to comment.