-
Notifications
You must be signed in to change notification settings - Fork 4
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
Don't build on synth #10
Comments
Hi @John0x, thanks for opening this issue. It looks like this is closely related to #9 , so I agree that ideally we should avoid calling I am honestly not sure of the best way to achieve this, so I will likely have to research a bit more into it. I have a feeling like |
Thank you for the response :) |
@John0x I've opened a discussion on the AWS CDK repo currently in regards to this issue, I'm hopeful that we can get some traction and help with moving this along, or at least someone can maybe point us in the right direction and we can better determine what we should be looking at. So I think as it pertains short term, there are some relatively quick, hopefully, straightforward steps we can take towards a favorable resolution, at least as a stop-gap solution. This would involve passing a context variable in when invoking the cdk synth -c build=false I could also expose this value in the global |
I don't know how discussions work, so putting the link here again. I think you need to copy what the cdk is doing with Go Lambda functions: |
Hi @John0x, I've published a new release, More or less, for now that's doing the equivalent of:
The benefits are that However, it appears to be a limitation in the CDK bundling process, that we aren't able to distinguish between In case that doesn't resolve the issue entirely, also try this as a potential workaround for now: cdk synth -c build=0 Truthy values as documented are |
- This work is done according to the comment: rnag#10 (comment)
- Changes the default asset hash type to `SOURCE` to prevent the costly Rust compiler from running when there is no change in the source files. `BundlingProps` includes additional properties `assetHashType` and `assetHash` to allow a user to change the asset hash type and value, but `RustFunction` does not support it yet. - This change may be a workaround for the issue rnag#10.
Hey, it looks like RustFunction is trying to execute cargo lambda upon synth, which in my opinion shouldn't happen. I have multiple stacks and don't want to compile the rust function every time I deploy one of the stacks (most don't include rust functions)
The text was updated successfully, but these errors were encountered: