mirror of
https://github.com/mikefarah/yq.git
synced 2026-10-12 02:19:06 +00:00
* feat: K8S KYAML output format support Reference: https://github.com/kubernetes/enhancements/blob/master/keps/sig-cli/5295-kyaml/README.md Co-authored-by: Codex <[email protected]> Generated-with: OpenAI Codex CLI (partial) Signed-off-by: Robin H. Johnson <[email protected]> * build: gomodcache/gocache should not be committed Signed-off-by: Robin H. Johnson <[email protected]> * chore: fix spelling of behaviour Signed-off-by: Robin H. Johnson <[email protected]> * build: pass GOFLAGS to docker to support buildvcs=false In trying to develop the KYAML support, various tests gave false positive results because they made assumptions about Git functionality Make it possible to avoid that by passing GOFLAGS='-buildvcs=false' to to Makefile. Signed-off-by: Robin H. Johnson <[email protected]> * doc: cover documentScenarios for tests Signed-off-by: Robin H. Johnson <[email protected]> * build: exclude go caches from gosec Without tuning, gosec scans all of the vendor/gocache/gomodcache, taking several minutes (3m35 here), whereas the core of the yq takes only 15 seconds to scan. If we intend to remediate upstream issues in future; add a seperate target to scan those. Signed-off-by: Robin H. Johnson <[email protected]> --------- Signed-off-by: Robin H. Johnson <[email protected]> Signed-off-by: Robin H. Johnson <[email protected]> Co-authored-by: Codex <[email protected]>
14 lines
227 B
Bash
Executable File
14 lines
227 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
|
|
OPTS=(
|
|
-exclude-dir=vendor
|
|
-exclude-dir=.gomodcache
|
|
-exclude-dir=.gocache
|
|
)
|
|
|
|
command -v gosec &> /dev/null && BIN=gosec || BIN=./bin/gosec
|
|
"${BIN}" "${OPTS[@]}" "${PWD}" ./...
|