-
Notifications
You must be signed in to change notification settings - Fork 152
feat: Validate minimum npm version required to use --install-links #546
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a965a81
Add npm version check for --install-links usage
lucashuy b317870
Update string splitting and added another test case
lucashuy cc123fd
Added module description for nodejs exceptions
lucashuy bf28e13
Move validation to install action getter to support esbuild
lucashuy 2fcbed4
Merge branch 'develop' into check_min_npm_version
lucashuy 51b6970
Revert package lock file change
lucashuy 2a07caa
Merge branch 'check_min_npm_version' of github.com:lucashuy/aws-lambd…
lucashuy 4394e2f
Added additional debug log
lucashuy 9bc5a83
Moved message to parent exception and change relative imports to abso…
lucashuy c851953
Moved check to workflow and revert to default behaviour if npm unsupp…
lucashuy 4f5185e
Cleaned imports and moved message to constant
lucashuy c325c9c
Merge branch 'develop' of github.com:aws/aws-lambda-builders into che…
lucashuy 26ab777
Updated message
lucashuy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| """ | ||
| Exceptions for the Node.js workflow | ||
| """ | ||
|
|
||
|
|
||
| from aws_lambda_builders.exceptions import LambdaBuilderError | ||
|
|
||
|
|
||
| class NpmExecutionError(LambdaBuilderError): | ||
| """ | ||
| Exception raised in case NPM execution fails. | ||
| It will pass on the standard error output from the NPM console. | ||
| """ | ||
|
|
||
| MESSAGE = "NPM Failed: {message}" | ||
|
|
||
| def __init__(self, **kwargs): | ||
| Exception.__init__(self, self.MESSAGE.format(**kwargs)) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.