Skip to content

archive: pack missing CATERPILLAR_FILE_NAME_WRITE calls log.Fatal #98

Description

Bug

Packing a record that has no CATERPILLAR_FILE_NAME_WRITE context value calls log.Fatal, which kills the process instead of returning an error the pipeline can report via fail_on_error.

Where

internal/pkg/pipeline/task/archive/zip.go and tar.goGetContextValue(string(task.CtxKeyFileNameWrite)) then log.Fatal("filepath not set in context").

Expected

Return an error from Run so the pipeline fails that task rather than aborting the process.

Found while auditing task READMEs in #96.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions