-
Notifications
You must be signed in to change notification settings - Fork 83
build(deps-dev): Use pipx
to install version-constrained build tools; Bump minimum CMake
version to 3.23
to support the latest ystdlib-cpp.
#1271
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
Changes from all commits
acc4a62
f1c7024
81d6799
bdb75bb
373d43f
7f8706e
b5da810
39d7abb
916a4b6
06a9020
0157ac4
b6f1436
93bee22
22cfccc
8adc4e6
ff98538
bff7064
6224601
828e634
386e5dc
6f5579b
b674025
bc976fe
8d463fd
d68ddba
06d2ca8
d3b9b24
cee4c35
e6043ad
2e2e9c8
4141831
fc2fd9a
096d21c
54e18e0
856c06f
e0950c1
b833729
778fdac
26a3a10
8fec8ba
bbf21fc
8601b81
330c0ae
a09f934
0e94674
5c49e2b
627d024
a5930d6
ec611c5
e7a42bc
58b8688
c359e30
0730260
f4a2c53
627d440
b686138
92d6cd9
fc783cd
e29b90c
8c94fbd
0c5dce1
d928f5e
f8bde46
132c3b5
e70f2e7
bd528a7
cf30eea
d26a13f
e890c0e
81a0c1f
1ed15ec
56a9a54
d457236
8aff56e
c395102
055a573
57df29e
31b21c5
9297f67
c1ab120
b417e1d
a73e389
3bb30a6
95a7b81
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,12 @@ WORKDIR /root | |
RUN mkdir -p ./tools/scripts/lib_install | ||
ADD ./tools/scripts/lib_install ./tools/scripts/lib_install | ||
|
||
RUN ./tools/scripts/lib_install/ubuntu-jammy/install-all.sh | ||
# Set pipx environment vars so that the pipx scripts install into the global locations without | ||
# passing the `--global` flag. | ||
ENV PIPX_BIN_DIR=/usr/local/bin | ||
ENV PIPX_HOME=/opt/pipx | ||
Comment on lines
+8
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainEnsure PIPX_HOME aligns with other images. Ubuntu sets /opt/pipx; verify many/musl images and CI use the same, or set safe defaults in the installers to avoid cross-image drift. 🏁 Script executed: #!/usr/bin/env bash
rg -n 'ENV\s+PIPX_HOME' components/core/tools/docker-images -C1 Length of output: 581 🏁 Script executed: #!/usr/bin/env bash
# List all Dockerfiles under the docker-images directory
echo "== Dockerfiles =="
fd --type f -e Dockerfile components/core/tools/docker-images
# Show all occurrences of pipx (including ENV settings) in those files
echo -e "\n== pipx occurrences =="
rg -n 'pipx' -C2 components/core/tools/docker-images Length of output: 5055 Consolidate PIPX environment variables across images 🤖 Prompt for AI Agents
|
||
|
||
RUN pip3 install --no-cache-dir uv | ||
RUN ./tools/scripts/lib_install/ubuntu-jammy/install-all.sh | ||
|
||
# Remove cached files | ||
RUN apt-get clean \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit on any error | ||
set -e | ||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
# Error on undefined variable | ||
set -u | ||
|
||
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
|
||
"${script_dir}/install-prebuilt-packages.sh" | ||
"${script_dir}/install-packages-from-source.sh" | ||
|
||
# TODO: https://github.com/y-scope/clp/issues/795 | ||
"${script_dir}/../check-cmake-version.sh" |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,50 +1,30 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
#!/usr/bin/env bash | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
# Exit on any error | ||||||||||||||||||||||||||||||||||||||||||||||||||
set -e | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
# Error on undefined variable | ||||||||||||||||||||||||||||||||||||||||||||||||||
set -u | ||||||||||||||||||||||||||||||||||||||||||||||||||
set -o errexit | ||||||||||||||||||||||||||||||||||||||||||||||||||
set -o nounset | ||||||||||||||||||||||||||||||||||||||||||||||||||
set -o pipefail | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
brew update | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
# Install CMake v3.31.6 as ANTLR and yaml-cpp do not yet support CMake v4+. | ||||||||||||||||||||||||||||||||||||||||||||||||||
# See also: https://github.com/y-scope/clp/issues/795 | ||||||||||||||||||||||||||||||||||||||||||||||||||
if command -v cmake ; then | ||||||||||||||||||||||||||||||||||||||||||||||||||
brew uninstall --force cmake | ||||||||||||||||||||||||||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||||||||||||||||||||||||||
pipx install "cmake~=3.31" | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
# Install a version of `task` < 3.43 to avoid https://github.com/y-scope/clp/issues/872 | ||||||||||||||||||||||||||||||||||||||||||||||||||
if command -v task ; then | ||||||||||||||||||||||||||||||||||||||||||||||||||
brew uninstall --force task | ||||||||||||||||||||||||||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||||||||||||||||||||||||||
pipx install "go-task-bin>=3.40,<3.43" | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
# Install uv | ||||||||||||||||||||||||||||||||||||||||||||||||||
if ! command -v uv ; then | ||||||||||||||||||||||||||||||||||||||||||||||||||
pipx install "uv>=0.8" | ||||||||||||||||||||||||||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
brew install \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
coreutils \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
gcc \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
java11 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
libarchive \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
llvm@16 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
lz4 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
mariadb-connector-c \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
xz \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
zstd | ||||||||||||||||||||||||||||||||||||||||||||||||||
coreutils \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
gcc \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
java11 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
libarchive \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
llvm@16 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
lz4 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
mariadb-connector-c \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
pipx \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
xz \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
zstd | ||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+9
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Verify Homebrew formula names; “java11” is likely incorrect. - java11 \
+ openjdk@11 \
libarchive \
@@
- pipx \
+ pipx \ Additionally, add: brew update
+python3 -m pipx ensurepath || true 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
# Install pkg-config if it isn't already installed | ||||||||||||||||||||||||||||||||||||||||||||||||||
# NOTE: We might expect that pkg-config is installed through brew, so trying to install it again | ||||||||||||||||||||||||||||||||||||||||||||||||||
# would be harmless; however, in certain environments, like the macOS GitHub hosted runner, | ||||||||||||||||||||||||||||||||||||||||||||||||||
# pkg-config is installed by other means, meaning a brew install would cause conflicts. | ||||||||||||||||||||||||||||||||||||||||||||||||||
if ! command -v pkg-config ; then | ||||||||||||||||||||||||||||||||||||||||||||||||||
if ! command -v pkg-config >/dev/null 2>&1; then | ||||||||||||||||||||||||||||||||||||||||||||||||||
brew install pkg-config | ||||||||||||||||||||||||||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
# TODO: https://github.com/y-scope/clp/issues/795 | ||||||||||||||||||||||||||||||||||||||||||||||||||
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||||||||||||||||||||||||||||||||||||||||||||||||||
"${script_dir}/../check-cmake-version.sh" | ||||||||||||||||||||||||||||||||||||||||||||||||||
# Install remaining packages through pipx | ||||||||||||||||||||||||||||||||||||||||||||||||||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||||||||||||||||||||||||||||||||||||||||||||||||||
"${script_dir}/../pipx-packages/install-all.sh" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Confirm script_dir resolution matches peers. Align with the prevailing pattern across lib_install to avoid subtle drift. 🤖 Prompt for AI Agents
|
||
|
||
"${script_dir}/install-prebuilt-packages.sh" | ||
"${script_dir}/install-packages-from-source.sh" | ||
|
||
# TODO: https://github.com/y-scope/clp/issues/795 | ||
"${script_dir}/../check-cmake-version.sh" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Keep script_dir style consistent. If other platform scripts use the simpler pwd form (no -P), mirror that for consistency; otherwise consider adopting -P everywhere together in a follow-up. 🤖 Prompt for AI Agents
|
||
|
||
"${script_dir}/install-prebuilt-packages.sh" | ||
"${script_dir}/install-packages-from-source.sh" | ||
|
||
# TODO: https://github.com/y-scope/clp/issues/795 | ||
"${script_dir}/../check-cmake-version.sh" |
Uh oh!
There was an error while loading. Please reload this page.