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

Building Dependencies Works Even if a Command Fails #388

Closed
1 task done
p0fi opened this issue Dec 5, 2022 · 10 comments
Closed
1 task done

Building Dependencies Works Even if a Command Fails #388

p0fi opened this issue Dec 5, 2022 · 10 comments

Comments

@p0fi
Copy link

p0fi commented Dec 5, 2022

Description

When using the build dependencies functionality of this module via the commands array the success of any given command is not considered when running the next commands form the array.

  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version [Required]: 4.0.0

  • Terraform version:

Terraform v1.3.5
on darwin_arm64
  • Provider version(s):
+ provider registry.terraform.io/hashicorp/aws v4.45.0
+ provider registry.terraform.io/hashicorp/external v2.2.3
+ provider registry.terraform.io/hashicorp/local v2.2.3
+ provider registry.terraform.io/hashicorp/null v3.2.1

Reproduction Code [Required]

If a commands array might look like this:

commands = [
  "yarn install",
  "yarn build",
  ":zip dist/index.js ."
]

Every command is still run, no matter how the previous command exited. It does not make sense to run a build if an install failed and furthermore a zip would result in something completely different from what is expected.

Steps to reproduce the behavior:

  1. Modify the install command to make it fail.
  2. Run terraform apply

Expected behavior

Apply would fail with an error message.

Actual behavior

Apply works fine but lambda code is not working since it was not build correctly.

Terminal Output Screenshot(s)

Additional context

Noticed the problem when yarn install commands would fail in CI but the run was "successful" but lambdas didn't work.

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Jan 5, 2023
@p0fi
Copy link
Author

p0fi commented Jan 5, 2023

This is still an issue

@github-actions github-actions bot removed the stale label Jan 6, 2023
@github-actions
Copy link

github-actions bot commented Feb 5, 2023

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Feb 5, 2023
@p0fi
Copy link
Author

p0fi commented Feb 5, 2023

This is still a problem

@github-actions github-actions bot removed the stale label Feb 6, 2023
@github-actions
Copy link

github-actions bot commented Mar 8, 2023

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Mar 8, 2023
@p0fi
Copy link
Author

p0fi commented Mar 8, 2023

This is still an issue 😢

@github-actions github-actions bot removed the stale label Mar 9, 2023
@github-actions
Copy link

github-actions bot commented Apr 9, 2023

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Apr 9, 2023
@github-actions
Copy link

This issue was automatically closed because of stale in 10 days

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2023
@vecchp
Copy link

vecchp commented Apr 20, 2023

I believe this is still an issue

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants