forked from vieter-v/vieter
Compare commits
No commits in common. "e13081a4aa6f71e7d133d446db1af00204aaa534" and "1ad20e5c1fd7a8cd8063b7f7b63f7376700248a3" have entirely different histories.
e13081a4aa
...
1ad20e5c1f
|
|
@ -25,5 +25,4 @@ pipeline:
|
||||||
- make prod
|
- make prod
|
||||||
# Make sure the binary is actually static
|
# Make sure the binary is actually static
|
||||||
- readelf -d pvieter
|
- readelf -d pvieter
|
||||||
- du -h pvieter
|
|
||||||
- '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]'
|
- '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]'
|
||||||
|
|
|
||||||
|
|
@ -25,5 +25,4 @@ pipeline:
|
||||||
- make prod
|
- make prod
|
||||||
# Make sure the binary is actually static
|
# Make sure the binary is actually static
|
||||||
- readelf -d pvieter
|
- readelf -d pvieter
|
||||||
- du -h pvieter
|
|
||||||
- '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]'
|
- '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]'
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,5 @@ platform: linux/amd64
|
||||||
pipeline:
|
pipeline:
|
||||||
lint:
|
lint:
|
||||||
image: 'chewingbever/vlang:latest'
|
image: 'chewingbever/vlang:latest'
|
||||||
group: lint
|
|
||||||
commands:
|
commands:
|
||||||
- make lint
|
- make lint
|
||||||
|
|
||||||
vet:
|
|
||||||
image: 'chewingbever/vlang:latest'
|
|
||||||
group: lint
|
|
||||||
commands:
|
|
||||||
- make vet
|
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -60,10 +60,6 @@ lint:
|
||||||
fmt:
|
fmt:
|
||||||
$(V) fmt -w $(SRC_DIR)
|
$(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
|
# Pulls & builds my personal build of the v compiler, required for this project to function
|
||||||
.PHONY: customv
|
.PHONY: customv
|
||||||
customv:
|
customv:
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,8 @@ pub fn pkg_info(pkg_path string) ?(string, []string) {
|
||||||
entry := C.archive_entry_new()
|
entry := C.archive_entry_new()
|
||||||
mut r := 0
|
mut r := 0
|
||||||
|
|
||||||
// Sinds 2020, all newly built Arch packages use zstd
|
C.archive_read_support_filter_all(a)
|
||||||
C.archive_read_support_filter_zstd(a)
|
C.archive_read_support_format_all(a)
|
||||||
// The content should always be a tarball
|
|
||||||
C.archive_read_support_format_tar(a)
|
|
||||||
|
|
||||||
// TODO find out where does this 10240 come from
|
// TODO find out where does this 10240 come from
|
||||||
r = C.archive_read_open_filename(a, &char(pkg_path.str), 10240)
|
r = C.archive_read_open_filename(a, &char(pkg_path.str), 10240)
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,8 @@ struct C.archive {}
|
||||||
|
|
||||||
// Create a new archive struct
|
// Create a new archive struct
|
||||||
fn C.archive_read_new() &C.archive
|
fn C.archive_read_new() &C.archive
|
||||||
// Configure the archive to work with zstd compression
|
fn C.archive_read_support_filter_all(&C.archive)
|
||||||
fn C.archive_read_support_filter_zstd(&C.archive)
|
fn C.archive_read_support_format_all(&C.archive)
|
||||||
// Configure the archive to work with a tarball content
|
|
||||||
fn C.archive_read_support_format_tar(&C.archive)
|
|
||||||
|
|
||||||
// Open an archive for reading
|
// Open an archive for reading
|
||||||
fn C.archive_read_open_filename(&C.archive, &char, int) int
|
fn C.archive_read_open_filename(&C.archive, &char, int) int
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue