Skip to content
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a035401
Consolidate several small scripts into a single __tool
vector-of-bool Oct 29, 2025
5f4b103
Significant Earthfile refactor
vector-of-bool Oct 29, 2025
7b73e94
Update Earthly-generated tasks
vector-of-bool Oct 30, 2025
c22a137
Simplify some path handling in Earthfile
vector-of-bool Oct 30, 2025
f488eab
Fix: Allow Ccache to cache properly in Earthly targets
vector-of-bool Oct 30, 2025
358a337
Split out an +init target
vector-of-bool Oct 30, 2025
ec044b1
Update Earthly target documentation
vector-of-bool Oct 30, 2025
e5d322f
Rearrange some Earthly documentation
vector-of-bool Oct 30, 2025
31e88f8
Fix: Wrong build paths to +verify-headers
vector-of-bool Oct 30, 2025
bdd5741
Add Ubuntu 24.04
vector-of-bool Oct 30, 2025
71ffffc
Enable building both with/without Snappy in Earthly
vector-of-bool Oct 30, 2025
1f7d32a
Tasks with/without Snappy
vector-of-bool Oct 30, 2025
082ca14
Merge branch 'master' into CDRIVER-6142-earthfile-refactor
vector-of-bool Nov 10, 2025
e2308aa
Minor commentary tweaks following PR comments
vector-of-bool Nov 11, 2025
59829fc
Add a trailhead for obtaining the detailed Earthfile documentation
vector-of-bool Nov 12, 2025
9a6eb17
Refactor Earthly C++ installation to rely on the same C compiler param
vector-of-bool Nov 12, 2025
0a5ba4f
Fix environment setup when the C package provides C++
vector-of-bool Nov 12, 2025
f0c64eb
Better documentation on the __tool script
vector-of-bool Nov 12, 2025
d43510e
Drop use of Yum in __install
vector-of-bool Nov 12, 2025
792509e
Add a __download for checked downloads
vector-of-bool Nov 13, 2025
e36ac20
Tweak devdocs convenience destination
vector-of-bool Nov 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions tools/__tool
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,10 @@ __install() {
test $# = 0 || env DEBIAN_FRONTEND=noninteractive \
apt-get -y install -- "$@" || return
elif test -f /etc/redhat-release || grep 'ID="amzn"' /etc/os-release >/dev/null 1>&2; then
if test -f /usr/bin/dnf; then
# 'dnf' will "do the right thing"
test $# = 0 || dnf install -y "$@" || return
elif test -f /usr/bin/yum; then
test $# = 0 || yum install -y -- "$@" || return
# 'yum' happily ignores missing packages. Use 'rpm -q' to check that
# everything we requested actually got installed.
test $# = 0 || if ! rpm -q -- "$@"; then
echo "$0: Failing because one or more packages requested are not available"
return 1
fi
else
echo "No package manager here?" 1>&2
exit 1
fi
# Install using dnf. This has been the preferred package manager command since
# RHEL 8, and has somewhat better behavior that Yum. If we want to support older
# systems, this block will need to be updated to detect Yum if dnf is unavailable.
test $# = 0 || dnf install -y "$@" || return
elif test -f /etc/SuSE-brand \
|| (test -f /etc/os-release && grep "opensuse" /etc/os-release); then
test $# = 0 || zypper --non-interactive install "$@" || return
Expand Down