Open sttawm opened 4 years ago
I'm not sure how to define (and generate protos for) profiles and extensions without hitting this error.
The error seems the result of a bazel rule (?) that generates a command / shell-script with too many arguments.
Any idea where this command is being generated?
The full command is in bazel-out/darwin-fastbuild/bin/external/com_google_fhir/spec/_genrule_fhir_stu3_package.genrule_script.sh
The beginning of it looks like this (minus new-line formatting):
source external/bazel_tools/tools/genrule/genrule-setup.sh;
zip --quiet -j bazel-out/darwin-fastbuild/bin/external/com_google_fhir/spec/fhir_stu3_package.zip \
external/com_google_fhir/spec/fhir_stu3_package_info.prototxt \
external/com_google_fhir/spec/hl7.fhir.core/3.0.1/modified/StructureDefinition-StructureDefinition.json \
external/com_google_fhir/spec/hl7.fhir.core/3.0.1/modified/StructureDefinition-cqif-condition.json \
external/com_google_fhir/spec/hl7.fhir.core/3.0.1/modified/StructureDefinition-cqif-cqlExpression.json \
external/com_google_fhir/spec/hl7.fhir.core/3.0.1/modified/StructureDefinition-cqif-fhirPathExpression.json
... etc.
When running
generate_protos.sh proto/google/fhir_examples/myprofile:myprofile
, I get:Maybe passing a directory to zip would fix it?
I'm on a mac (ios 10.15) which gives: