소스 검색

fix: reference correct variable

jose-fully-ported 2 년 전
부모
커밋
e78194d24e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cli/cmd/docker/builder.go

+ 1 - 1
cli/cmd/docker/builder.go

@@ -211,7 +211,7 @@ func buildLocalWithBuildkit(ctx context.Context, opts BuildOpts) error {
 	cacheTo := ""
 	cacheTo := ""
 	ok, ghaErr := isRunningInGithubActions()
 	ok, ghaErr := isRunningInGithubActions()
 	if ghaErr != nil {
 	if ghaErr != nil {
-		fmt.Printf("Github Actions environment error: %s\n", err.Error())
+		fmt.Printf("Github Actions environment error: %s\n", ghaErr.Error())
 	}
 	}
 		
 		
 	if ok && os.Getenv("BUILDKIT_CACHE_EXPORTER") == "gha" {
 	if ok && os.Getenv("BUILDKIT_CACHE_EXPORTER") == "gha" {