pkg/build/image/build_context_archive.go
Method BuildContextArchive.CalculateGlobsChecksum
has 6 return statements (exceeds 4 allowed). Open
Open
func (a *BuildContextArchive) CalculateGlobsChecksum(ctx context.Context, globs []string, checkForArchives bool) (string, error) {
contextDir, err := a.ExtractOrGetExtractedDir(ctx)
if err != nil {
return "", fmt.Errorf("unable to get build context dir: %w", err)
}
Method BuildContextArchive.ExtractOrGetExtractedDir
has 6 return statements (exceeds 4 allowed). Open
Open
func (a *BuildContextArchive) ExtractOrGetExtractedDir(ctx context.Context) (string, error) {
if a.path == "" {
panic("extract should not be called before create")
}
Method BuildContextArchive.Create
has 5 return statements (exceeds 4 allowed). Open
Open
func (a *BuildContextArchive) Create(ctx context.Context, opts container_backend.BuildContextArchiveCreateOptions) error {
contextPathRelativeToGitWorkTree := filepath.Join(a.giterminismMgr.RelativeToGitProjectDir(), opts.ContextGitSubDir)
dockerIgnorePathMatcher, err := createDockerIgnorePathMatcher(ctx, a.giterminismMgr, opts.ContextGitSubDir, opts.DockerfileRelToContextPath)
if err != nil {