oasdiff
LOW
maintainer agony4001
0 votes
scanned 2026-10-27 13:48:00.041465
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: agony <27015 at riseup dot net>
2
3
pkgname=oasdiff
4
pkgver=1.34.1
5
pkgrel=1
6
pkgdesc='Diff and breaking changes for OpenAPI specifications'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/oasdiff/oasdiff'
9
license=('Apache-2.0')
10
depends=('glibc')
11
makedepends=('go')
12
checkdepends=('git')
13
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
14
sha256sums=('ebcf119ebc942694f4c3a9c0dfc9c6c6d401d803efb525a77aa973104e7b68d9')
15
16
prepare() {
17
cd "${pkgname}-${pkgver}"
18
export GOPATH="${srcdir}/gopath"
19
go mod download -x -modcacherw
20
}
21
22
build() {
23
cd "${pkgname}-${pkgver}"
24
export GOPATH="${srcdir}/gopath"
25
export CGO_CPPFLAGS="${CPPFLAGS}"
26
export CGO_CFLAGS="${CFLAGS}"
27
export CGO_CXXFLAGS="${CXXFLAGS}"
28
export CGO_LDFLAGS="${LDFLAGS}"
29
export GOFLAGS='-buildmode=pie -trimpath -buildvcs=false -mod=readonly -modcacherw'
30
go build -v -ldflags="-linkmode=external -X github.com/oasdiff/oasdiff/build.Version=${pkgver}" -o oasdiff .
31
for shell in bash fish zsh; do
32
./oasdiff completion "${shell}" > "completion.${shell}"
33
done
34
}
35
36
check() {
37
cd "${pkgname}-${pkgver}"
38
export GOPATH="${srcdir}/gopath"
39
export GOFLAGS='-buildvcs=false -mod=readonly -modcacherw'
40
# The git tests commit in temporary repositories; a global commit.gpgsign
41
# would make them sign with the user's key
42
export GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_NOSYSTEM=1
43
go test ./...
44
}
45
46
package() {
47
cd "${pkgname}-${pkgver}"
48
install -Dm755 oasdiff -t "${pkgdir}/usr/bin"
49
install -Dm644 completion.bash "${pkgdir}/usr/share/bash-completion/completions/oasdiff"
50
install -Dm644 completion.fish "${pkgdir}/usr/share/fish/vendor_completions.d/oasdiff.fish"
51
install -Dm644 completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_oasdiff"
52
}
53
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-27 13:48:00 | Low | 1 |