Skip to content

Commit a49112b

Browse files
Merge from aws/aws-sam-cli/develop
2 parents 4cc1dbb + bce42a4 commit a49112b

74 files changed

Lines changed: 3594 additions & 605 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/codeql.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@v4.38.2
49+
uses: github/codeql-action/init@v4.39.1
5050
with:
5151
languages: ${{ matrix.language }}
5252
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -60,7 +60,7 @@ jobs:
6060
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
6161
# If this step fails, then you should remove it and run the build manually (see below)
6262
- name: Autobuild
63-
uses: github/codeql-action/autobuild@v4.38.2
63+
uses: github/codeql-action/autobuild@v4.39.1
6464

6565
# ℹ️ Command-line programs to run using the OS shell.
6666
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -73,6 +73,6 @@ jobs:
7373
# ./location_of_script_within_repo/buildscript.sh
7474

7575
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@v4.38.2
76+
uses: github/codeql-action/analyze@v4.39.1
7777
with:
7878
category: "/language:${{matrix.language}}"

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies = [
4545
"docker>=7.1,<7.3",
4646
"dateparser~=1.3",
4747
"requests>=2.32.5,<2.35.0",
48-
"aws_lambda_builders==1.67.0",
48+
"aws_lambda_builders==1.68.0",
4949
"tomlkit==0.15.1",
5050
"watchdog==4.0.2",
5151
"rich>=14.3.3,<15.1.0",

‎requirements/reproducible-linux.txt‎

Lines changed: 130 additions & 130 deletions
Large diffs are not rendered by default.

‎requirements/reproducible-mac.txt‎

Lines changed: 130 additions & 130 deletions
Large diffs are not rendered by default.

‎requirements/reproducible-win.txt‎

Lines changed: 130 additions & 130 deletions
Large diffs are not rendered by default.

‎samcli/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
SAM CLI version
33
"""
44

5-
__version__ = "1.170.0"
5+
__version__ = "1.171.0"

‎samcli/commands/_utils/experimental.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class ExperimentalFlag:
5757
UvPackageManager = ExperimentalEntry(
5858
"experimentalUvPackageManager", EXPERIMENTAL_ENV_VAR_PREFIX + "UV_PACKAGE_MANAGER"
5959
)
60+
NodejsMonorepo = ExperimentalEntry("experimentalNodejsMonorepo", EXPERIMENTAL_ENV_VAR_PREFIX + "NODEJS_MONOREPO")
6061

6162

6263
def is_experimental_enabled(config_entry: ExperimentalEntry) -> bool:

‎samcli/commands/_utils/options.py‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,17 @@ def build_in_source_click_option():
10531053
required=False,
10541054
is_flag=True,
10551055
help="Opts in to build project in the source folder. The following workflows support "
1056-
f"building in source: {SUPPORTED_BUILD_IN_SOURCE_WORKFLOWS}",
1056+
f"building in source: {SUPPORTED_BUILD_IN_SOURCE_WORKFLOWS}\n"
1057+
"\n"
1058+
"For `sam build` on an npm workspaces monorepo, npm installs once at the workspace root "
1059+
"instead of once per function, and each function's artifacts are narrowed to the "
1060+
"dependencies it resolves. The install runs in the workspace root npm itself reports, "
1061+
"which is inside your project but above the function's CodeUri.\n"
1062+
"\n"
1063+
"This grouping is in beta: enable it with --beta-features or "
1064+
"SAM_CLI_BETA_NODEJS_MONOREPO=1. Without it, every function installs for itself, as in "
1065+
"earlier releases. It is also skipped for --use-container and --cached builds, so "
1066+
"`sam sync` does not use it.",
10571067
cls=ClickMutex,
10581068
incompatible_params=["use_container", "hook_name"],
10591069
)

‎samcli/commands/build/build_context.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __init__(
159159
docker_network: Optional[str]
160160
Docker network to run the container in.
161161
skip_pull_image: bool
162-
Whether we should pull new Docker container image or not
162+
Whether we should pull new container image or not
163163
container_env_var: Optional[dict]
164164
An optional dictionary of environment variables to pass to the container
165165
container_env_var_file: Optional[dict]

‎samcli/commands/build/core/command.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ def format_examples(ctx: Context, formatter: CommandHelpTextFormatter):
7474
),
7575
]
7676
)
77+
with formatter.indented_section(
78+
name="Build an npm workspaces monorepo, installing once at the workspace root (beta)",
79+
extra_indents=1,
80+
):
81+
formatter.write_text_rows(
82+
[
83+
RowDefinition(
84+
name=style(f"$ {ctx.command_path} --build-in-source --beta-features"),
85+
extra_row_modifiers=[ShowcaseRowModifier()],
86+
),
87+
]
88+
)
7789
with formatter.indented_section(name="Build sam project and deploy", extra_indents=1):
7890
formatter.write_text_rows(
7991
[

0 commit comments

Comments
 (0)