Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not crash on copy if the source path is missing #688

Open
ademariag opened this issue Jan 29, 2021 · 1 comment
Open

Do not crash on copy if the source path is missing #688

ademariag opened this issue Jan 29, 2021 · 1 comment
Assignees
Labels

Comments

@ademariag
Copy link
Contributor

ademariag commented Jan 29, 2021

Describe the bug/feature
At the moment, when using the following inventory configuration:

 kapitan:
    compile:
      - input_type: copy
        input_paths:
          - resources/state/${target_name}/.terraform.lock.hcl
        output_path: terraform/

kapitan crashes if the input path is not found.

To Reproduce
Steps to reproduce the behavior:

  1. configure copy input as above
  2. run kapitan compile
  3. See error
Compile error: resources/state/<target_name>/.terraform.lock.hcl for target: <target name> not found in search_paths: ['/src', '/src/lib', '/tmp/tmpemllevg1.kapitan']

Expected behavior
Allow for option to ignore the error

Copy link

This issue is stale because it has been open for 1 year with no activity.
Remove the stale label or comment if this issue is still relevant for you.
If not, please close it yourself.

@github-actions github-actions bot added the Stale label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant