-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feature request: Build in source #4571
Comments
We're currently working on this feature, prioritizing the provided/custom (Makefile) and NodeJS runtimes first. |
Hi @torresxb1, Are there any updates?
Makefile is already supported, but it does not solve the problems that would be resolved by providing the capability to build in the source code directory. This coping should be optional. |
Hi @kirilgorbachov, we are still working on the implementation. I unfortunately can't give a timeline, but I will definitely post an update here once it's ready. The option to build in the source code directory will certainly be optional and the current defaults will be maintained. |
A pretty poor workaround for now could be to just change directory back to the original in the makefile and build it. Example with gradle (could be modified to golang or others)
|
@kirilgorbachov can you elaborate on this - "Makefile is already supported"? I'm not seeing where building in the source directory is supported for Makefile runtimes. Also @torresxb1 - is there any update you're able to share with us? |
Hi all, sorry about the delay in responses. The good news is that building projects in source is now released as of SAM CLI v1.104.0! Build your Node.js projects (including esbuild building methods) and Makefile projects with the new Closing this issue as complete, please feel free to create a new issue or feature request if you'd like to help improve SAM CLI. |
|
Describe your idea/feature/enhancement
When building certain runtimes (Java, NodeJS, Python, Ruby, provided/custom), SAM CLI copies the source code and builds in another directory.
However, there are limitations with this approach, some of the main ones being:
Proposal
Adding an option to allow building directly in the source code directory instead.
Additional Details
Runtimes that already build directly in the source code directory: Go, .NET.
Related Issues:
Runtime: provided
,sam build
copies source to a temp dir, breaking builds that use relative paths #2077The text was updated successfully, but these errors were encountered: