Skip to content

Commit 873505d

Browse files
chore: [NOSNOW] pin click version (#2619)
* chore: [NOSNOW] pin click version in build image * chore: [NOSNOW] pin click version
1 parent 693de06 commit 873505d

File tree

11 files changed

+12
-11
lines changed

11 files changed

+12
-11
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
python-version: "3.x"
3434
- name: Install pre-commit
35-
run: python -m pip install pre-commit tomlkit hatch uv
35+
run: python -m pip install pre-commit tomlkit click==8.2.1 hatch uv
3636
- name: Check if pyproject.toml was changed
3737
id: pyproject_changed
3838
run: |

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
python-version: ${{ matrix.python-version }}
3939
- name: Install hatch
4040
run: |
41-
pip install -U hatch
41+
pip install -U click==8.2.1 hatch
4242
hatch env create default
4343
- name: Test with hatch
4444
run: hatch run test-cov

.github/workflows/test_fork.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
python-version: ${{ inputs.python-version }}
3737
- name: Install dependencies
3838
run: |
39-
python -m pip install --upgrade pip hatch
39+
python -m pip install --upgrade pip click==8.2.1 hatch
4040
python -m hatch env create ${{ inputs.python-env }}
4141
- name: Run integration tests
4242
env:

.github/workflows/test_perfomance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
python-version: "3.10"
3333
- name: Install hatch
3434
run: |
35-
pip install -U hatch
35+
pip install -U click==8.2.1 hatch
3636
hatch env create default
3737
- name: Run performance tests
3838
run: hatch run performance:test

.github/workflows/test_trusted.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
python-version: ${{ inputs.python-version }}
3434
- name: Install dependencies
3535
run: |
36-
python -m pip install --upgrade pip hatch
36+
python -m pip install --upgrade pip click==8.2.1 hatch
3737
python -m hatch env create ${{ inputs.python-env }}
3838
- name: Run integration tests
3939
env:

scripts/packaging/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ RUN chmod +x /tmp/build_python.sh && /tmp/build_python.sh && rm /tmp/build_pytho
4040
ENV PATH="/usr/local/bin:$PATH"
4141

4242
# Install build tools - these are not embedded in final binary so can use pre-built wheels
43-
RUN python -m pip install -U uv hatch
43+
# pinning click to 8.2.1 due to issues with 8.3.0 https://github.com/pypa/hatch/issues/2050
44+
RUN python -m pip install -U click==8.2.1 uv hatch
4445

4546
WORKDIR /snowflake-cli

scripts/packaging/build_darwin_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ python3.11 -m venv venv
1111
python --version
1212

1313
echo "--- installing dependencies ---"
14-
pip install hatch
14+
pip install click==8.2.1 hatch
1515

1616
# install cargo
1717
if [[ ${MACHINE} == "arm64" ]]; then

scripts/packaging/win/build_installer.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set PATH=C:\Program Files\7-Zip;C:\Users\jenkins\AppData\Local\Programs\Python\P
55
python.exe --version
66
python.exe -c "import platform as p; print(f'{p.system()=}, {p.architecture()=}')"
77

8-
python.exe -m pip install hatch
8+
python.exe -m pip install click==8.2.1 hatch
99
FOR /F "delims=" %%I IN ('hatch run packaging:win-build-version') DO SET CLI_VERSION=%%I
1010
FOR /F "delims=" %%I IN ('git rev-parse %svnRevision%') DO SET REVISION=%%I
1111
FOR /F "delims=" %%I IN ('echo %releaseType%') DO SET RELEASE_TYPE=%%I

scripts/packaging/win/build_snowflake_cli.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set PATH=C:\Program Files\Python310\;c:\Program Files (x86)\Windows Kits\8.1\bin
44
python.exe --version
55
python.exe -c "import platform as p; print(f'{p.system()=}, {p.architecture()=}')"
66

7-
python.exe -m pip install --upgrade pip uv hatch
7+
python.exe -m pip install --upgrade pip uv click==8.2.1 hatch
88

99
curl -o rustup-init.exe https://win.rustup.rs/
1010
rustup-init.exe -y

scripts/run_tests_preprod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
python3.10 -m venv venv
22
source venv/bin/activate
3-
python -m pip install --upgrade pip hatch
3+
python -m pip install --upgrade pip click==8.2.1 hatch
44

55
echo "Test cleanup"
66
python -m hatch env create integration

0 commit comments

Comments
 (0)