Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit b3672fc

Browse files
committed
ci: fix lint
1 parent 9f3ba5b commit b3672fc

File tree

6 files changed

+19
-49
lines changed

6 files changed

+19
-49
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
uses: asdf-vm/actions/plugin-test@v4
2121
with:
2222
command: zig env
23+
gitref: ${{ github.sha }}

.github/workflows/lint.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
# asdf-zig [![Build](https://github.com/jiacai2050/asdf-zig/actions/workflows/build.yml/badge.svg)](https://github.com/jiacai2050/asdf-zig/actions/workflows/build.yml) [![Lint](https://github.com/jiacai2050/asdf-zig/actions/workflows/lint.yml/badge.svg)](https://github.com/jiacai2050/asdf-zig/actions/workflows/lint.yml)
3+
# asdf-zig [![Build](https://github.com/jiacai2050/asdf-zig/actions/workflows/build.yml/badge.svg)](https://github.com/jiacai2050/asdf-zig/actions/workflows/build.yml)
44

55
[asdf-zig](https://github.com/jiacai2050/asdf-zig) plugin for the [asdf version manager](https://asdf-vm.com).
66

bin/download

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ release_file="${ASDF_DOWNLOAD_PATH}/zig-${ASDF_INSTALL_VERSION}.tar.xz"
1111

1212
"${plugin_dir}/lib/utils.py" download "${ASDF_INSTALL_VERSION}" "${release_file}"
1313
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1
14+
rm "$release_file"

bin/install

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
set -euo pipefail
44

55
install_version() {
6-
local install_type="$1"
7-
local version="$2"
8-
local install_path="$3"
6+
local install_type="$1"
7+
local version="$2"
8+
local install_path="$3"
99

10-
if [ "$install_type" != "version" ]; then
11-
fail "asdf-zig supports release installs only"
12-
fi
10+
if [ "$install_type" != "version" ]; then
11+
fail "asdf-zig supports release installs only"
12+
fi
1313

14-
(
15-
mkdir -p "$install_path"
16-
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"
14+
(
15+
mkdir -p "$install_path"
16+
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"
1717
mkdir -p "$install_path/bin"
1818
mv "$install_path/zig" "$install_path/bin/zig"
1919

20-
local tool_cmd="zig"
21-
if ! test -x "$install_path/bin/$tool_cmd"; then
20+
local tool_cmd="zig"
21+
if ! test -x "$install_path/bin/$tool_cmd"; then
2222
echo "Expected $install_path/bin/zig to be executable."
2323
exit 1
2424
fi
2525

26-
echo "zig $version installation was successful!"
27-
) || (
28-
rm -rf "$install_path"
29-
fail "An error occurred while installing $TOOL_NAME $version."
30-
)
26+
echo "zig $version installation was successful!"
27+
) || (
28+
rm -rf "$install_path"
29+
fail "An error occurred while installing $TOOL_NAME $version."
30+
)
3131
}
3232

3333
install_version "$ASDF_INSTALL_TYPE" "$ASDF_INSTALL_VERSION" "$ASDF_INSTALL_PATH"

scripts/lint.bash

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)