diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 5ece461..83dcb0e 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -25,5 +25,4 @@ pipeline: - make prod # Make sure the binary is actually static - readelf -d pvieter - - du -h pvieter - '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]' diff --git a/.woodpecker/.build_arm64.yml b/.woodpecker/.build_arm64.yml index 3b919b4..704bc48 100644 --- a/.woodpecker/.build_arm64.yml +++ b/.woodpecker/.build_arm64.yml @@ -25,5 +25,4 @@ pipeline: - make prod # Make sure the binary is actually static - readelf -d pvieter - - du -h pvieter - '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]' diff --git a/.woodpecker/.lint.yml b/.woodpecker/.lint.yml index 1ccd077..380b3d4 100644 --- a/.woodpecker/.lint.yml +++ b/.woodpecker/.lint.yml @@ -6,12 +6,5 @@ platform: linux/amd64 pipeline: lint: image: 'chewingbever/vlang:latest' - group: lint commands: - make lint - - vet: - image: 'chewingbever/vlang:latest' - group: lint - commands: - - make vet diff --git a/Makefile b/Makefile index 103aca6..bf77b62 100644 --- a/Makefile +++ b/Makefile @@ -60,10 +60,6 @@ lint: fmt: $(V) fmt -w $(SRC_DIR) -.PHONY: vet -vet: - $(V) vet -W $(SRC_DIR) - # Pulls & builds my personal build of the v compiler, required for this project to function .PHONY: customv customv: diff --git a/src/archive/archive.v b/src/archive/archive.v index c280a42..88649ee 100644 --- a/src/archive/archive.v +++ b/src/archive/archive.v @@ -12,10 +12,8 @@ pub fn pkg_info(pkg_path string) ?(string, []string) { entry := C.archive_entry_new() mut r := 0 - // Sinds 2020, all newly built Arch packages use zstd - C.archive_read_support_filter_zstd(a) - // The content should always be a tarball - C.archive_read_support_format_tar(a) + C.archive_read_support_filter_all(a) + C.archive_read_support_format_all(a) // TODO find out where does this 10240 come from r = C.archive_read_open_filename(a, &char(pkg_path.str), 10240) diff --git a/src/archive/bindings.v b/src/archive/bindings.v index f507fac..678d715 100644 --- a/src/archive/bindings.v +++ b/src/archive/bindings.v @@ -8,10 +8,8 @@ struct C.archive {} // Create a new archive struct fn C.archive_read_new() &C.archive -// Configure the archive to work with zstd compression -fn C.archive_read_support_filter_zstd(&C.archive) -// Configure the archive to work with a tarball content -fn C.archive_read_support_format_tar(&C.archive) +fn C.archive_read_support_filter_all(&C.archive) +fn C.archive_read_support_format_all(&C.archive) // Open an archive for reading fn C.archive_read_open_filename(&C.archive, &char, int) int