oasdiff

LOW
maintainer agony4001 0 votes scanned 2026-10-27 13:48:00.041465
View on AUR
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
3pkgname=oasdiff
4pkgver=1.34.1
5pkgrel=1
6pkgdesc='Diff and breaking changes for OpenAPI specifications'
7arch=('x86_64' 'aarch64')
8url='https://github.com/oasdiff/oasdiff'
9license=('Apache-2.0')
10depends=('glibc')
11makedepends=('go')
12checkdepends=('git')
13source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
14sha256sums=('ebcf119ebc942694f4c3a9c0dfc9c6c6d401d803efb525a77aa973104e7b68d9')
15
16prepare() {
17 cd "${pkgname}-${pkgver}"
18 export GOPATH="${srcdir}/gopath"
19 go mod download -x -modcacherw
20}
21
22build() {
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
36check() {
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
46package() {
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)SeverityRules
2026-10-27 13:48:00 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion