Skip to content

fix: force download dependencies if dependency folder doesn't exist#3582

Merged
mndeveci merged 5 commits intoaws:developfrom
mndeveci:fix_incremental_build_deps_dir
Jan 28, 2022
Merged

fix: force download dependencies if dependency folder doesn't exist#3582
mndeveci merged 5 commits intoaws:developfrom
mndeveci:fix_incremental_build_deps_dir

Conversation

@mndeveci
Copy link
Contributor

Which issue(s) does this change fix?

When running incremental build, download_dependencies flag should be False if dependecy folder (which should be created earlier) does not exist.

Checklist

  • Add input/output type hints to new functions/methods
  • Write design document (Do I need to write a design document?)
  • Write unit tests
  • Write/update functional tests
  • Write/update integration tests
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added pr/internal area/build sam build command labels Jan 13, 2022
@CoshUS CoshUS self-requested a review January 13, 2022 19:49
Copy link
Contributor

@CoshUS CoshUS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Is the case of missing dependency dir limited to user manual actions or does it happen in SAM CLI's workflow?

@mndeveci
Copy link
Contributor Author

LGTM. Is the case of missing dependency dir limited to user manual actions or does it happen in SAM CLI's workflow?

It happened to me when I was testing locally. Anything that causes to first build to fail (internet connection issues or killing process with CTRL+C) ends-up all subsequent ones to fail since it assumes dependencies are in that folder but actually that folder doesn't exist.

@mndeveci mndeveci merged commit 3968750 into aws:develop Jan 28, 2022
mndeveci added a commit to mndeveci/aws-sam-cli that referenced this pull request Apr 5, 2022
…ws#3582)

Co-authored-by: Wing Fung Lau <4760060+hawflau@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build sam build command pr/internal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants