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 validate does not notice Node.js V22 #7914

Open
jalpp opened this issue Mar 3, 2025 · 0 comments
Open

Bug: Sam validate does not notice Node.js V22 #7914

jalpp opened this issue Mar 3, 2025 · 0 comments
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Comments

@jalpp
Copy link

jalpp commented Mar 3, 2025

Description:

when creating a new sam project, Node.js v22 is given an option 11 which I created the project with, but after I have it and run SAM validate, the validation fails

Steps to reproduce:

  • create a new project with SAM node.js V22
  • run sam Validate and validation fails, probably because I'm on older SAM CLI version, but still even than sam validation should say update SAM rather than that bug.
    (I'm on 1.131.0 installed)

Observed result:

[[E3030: Check if properties have a valid value] ('nodejs22.x' is not one of ['dotnet6', 'dotnet8', 'dotnetcore1.0', 'dotnetcore2.0', 'dotnetcore2.1', 'dotnetcore3.1', 'go1.x', 'java11', 'java17', 'java21', 'java8', 'java8.al2', 'nodejs', 'nodejs10.x', 'nodejs12.x', 'nodejs14.x', 'nodejs16.x', 'nodejs18.x', 'nodejs20.x', 'nodejs4.3', 'nodejs4.3-edge', 'nodejs6.10', 'nodejs8.10', 'provided', 'provided.al2', 'provided.al2023', 'python2.7', 'python3.10', 'python3.11', 'python3.12', 'python3.13', 'python3.6', 'python3.7', 'python3.8', 'python3.9', 'ruby2.5', 'ruby2.7', 'ruby3.2', 'ruby3.3']) matched 14] Error: Linting failed. At least one linting rule was matched to the provided template.

Expected result:

SAM should tell me to either update my SAM, or it should not show Node.js v22 when picking the project in sam init

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

  1. OS:
    Windows
  2. sam --version:
    (I'm on 1.131.0 installed)
  3. AWS region:
# Paste the output of `sam --info` here

Add --debug flag to command you are running

@jalpp jalpp added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.
Projects
None yet
Development

No branches or pull requests

1 participant