From 83d6f52e107b8052acd394c463e4c206d7fe70d6 Mon Sep 17 00:00:00 2001 From: Joel Longtine Date: Fri, 7 Jan 2022 21:32:15 -0700 Subject: [PATCH] Fix nits + cue.mod I let slip through Signed-off-by: Joel Longtine --- plan/task/build.go | 4 +--- tests/cue.mod/module.cue | 1 - tests/cue.mod/pkg/.gitignore | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 tests/cue.mod/module.cue delete mode 100644 tests/cue.mod/pkg/.gitignore diff --git a/plan/task/build.go b/plan/task/build.go index 94228600..a7fe22f3 100644 --- a/plan/task/build.go +++ b/plan/task/build.go @@ -115,7 +115,7 @@ func (t *buildTask) dockerfile(ctx context.Context, pctx *plancontext.Context, s return nil, err } - var solvedRef bkgw.Reference + solvedRef := ref if ref != nil { st, err := ref.ToState() if err != nil { @@ -126,8 +126,6 @@ func (t *buildTask) dockerfile(ctx context.Context, pctx *plancontext.Context, s if err != nil { return nil, err } - } else { - solvedRef = ref } // Image metadata diff --git a/tests/cue.mod/module.cue b/tests/cue.mod/module.cue deleted file mode 100644 index f8af9cef..00000000 --- a/tests/cue.mod/module.cue +++ /dev/null @@ -1 +0,0 @@ -module: "" diff --git a/tests/cue.mod/pkg/.gitignore b/tests/cue.mod/pkg/.gitignore deleted file mode 100644 index 2d4dc1ae..00000000 --- a/tests/cue.mod/pkg/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# generated by dagger -alpha.dagger.io -dagger.lock