George Hu pushed to branch main at Arch Linux / Packaging / Packages /
baidupcs-go
Commits:
c819efc0 by George Hu at 2026-01-05T21:21:16+08:00
Download Go modules in `prepare()` function
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -15,6 +15,12 @@ provides=("baidupcs")
source=("git+https://github.com/qjfoidnh/BaiduPCS-Go.git#tag=v$pkgver")
sha512sums=('4fd1e0bda84d7820d74100a9eb3e7a582ea83688a5148be2b0cceb16b70c6eba1da97d941a88503e32ffd8d1118bc3b4a0bfaa30681dcbd5f91b83249ff51f6d')
+prepare() {
+ cd BaiduPCS-Go
+ export GOPATH="${srcdir}"
+ go mod download -modcacherw -x
+}
+
build() {
cd BaiduPCS-Go
export GOFLAGS="-buildmode=pie -trimpath"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/baidupcs-go/-/commit/c819efc09a10d9b25e668a078d16dd85cb41c316
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/baidupcs-go/-/commit/c819efc09a10d9b25e668a078d16dd85cb41c316
You're receiving this email because of your account on gitlab.archlinux.org.