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

Bug: sam build --build-in-source does not reflect update in local dependency #7546

Open
hawflau opened this issue Oct 8, 2024 · 0 comments
Labels
area/build sam build command area/node-npm stage/needs-investigation Requires a deeper investigation type/bug

Comments

@hawflau
Copy link
Contributor

hawflau commented Oct 8, 2024

Description:

After installing the local package and building , if you update the local package and then build again, it will not be reflected in the node_modules file.

Steps to reproduce:

  • Download sam-app.tar.gz, extract it
  • Go to the hello-world directory
  • install local packages
$ npm install ../utils/custom-response
  • build
$ cd ../
$ sam build --build-in-source
  • Update local packages (any update is fine)
vi utils/custom-response/index.js
  • Build again
$ sam build --build-in-source --no-cached
  • Check the packages under the node_modules directory
cat hello-world/node_modules/custom-response/index.js 

Observed result:

=> The content updated in step 5 is not reflected.

Expected result:

=> The content updated in step 5 should be reflected.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS:
  2. sam --version:
  3. AWS region:
# Paste the output of `sam --info` here

Add --debug flag to command you are running

@hawflau hawflau added stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. type/bug stage/needs-investigation Requires a deeper investigation area/build sam build command area/node-npm and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build sam build command area/node-npm stage/needs-investigation Requires a deeper investigation type/bug
Projects
None yet
Development

No branches or pull requests

1 participant