cluster-monitoring icon indicating copy to clipboard operation
cluster-monitoring copied to clipboard

Fix xargs: command line cannot be assembled, too long

Open yesid-lopez opened this issue 11 months ago • 0 comments

Hello there!

I was getting this issue whenever I wanted to update the values with the make command:

$ make                                                                           
rm -rf manifests
./scripts/build.sh main.jsonnet /Users/yelopez/go/bin/jsonnet
using jsonnet from arg
+ set -o pipefail
+ rm -rf manifests
+ mkdir -p manifests/setup
+ /Users/yelopez/go/bin/jsonnet -J vendor -m manifests main.jsonnet
+ xargs '-I{}' sh -c 'cat {} | $(go env GOPATH)/bin/gojsontoyaml > {}.yaml; rm -f {}' -- '{}'
xargs: command line cannot be assembled, too long
make: *** [manifests] Error 1

Sending a PR that solved the issue for me.

yesid-lopez avatar Mar 02 '24 23:03 yesid-lopez