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

Fixes #39: Installation broken on Fedora #40

Merged
merged 5 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion static/install-opentofu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ install_standalone() {

if [ "${OPENTOFU_VERSION}" = "latest" ]; then
log_info "Determining latest OpenTofu version..."
OPENTOFU_VERSION=$(download_file "https://api.github.com/repos/opentofu/opentofu/releases/latest" - | grep "tag_name" | sed -e 's/.*tag_name": "v//' -e 's/".*//')
OPENTOFU_VERSION=$(download_file "https://api.github.com/repos/opentofu/opentofu/releases/latest" - | grep "tag_name" | sed -e 's/.*tag_name":"v//' -e 's/.*tag_name": "v//' -e 's/".*//')
if [ -z "${OPENTOFU_VERSION}" ]; then
log_error "Failed to obtain the latest release from the GitHub API. Try passing --opentofu-version to specify a version."
return "${TOFU_INSTALL_EXIT_CODE_INSTALL_FAILED}"
Expand Down
5 changes: 2 additions & 3 deletions tests/linux/in-container/methods/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ case "$DISTRO" in
apt-get install -y git build-essential gcc procps curl file bash
;;
ubuntu)
apt-get install -y git build-essential gcc procps curl file bash
apt-get install -y git build-essential gcc procps curl file bash
;;
alpine)
#apk add git gcc bash curl ruby gcompat
echo "alpine - brew not supported"
exit 0
;;
fedora | rocky)
yum install -y procps-ng curl file git gcc bash
yum groupinstall -y 'Development Tools'
dnf install -y procps-ng curl file git gcc bash
;;
opensuse)
zypper install -y file git gcc tar bash ruby gzip
Expand Down
Loading