fhir
fhir copied to clipboard
FR: bzlmod support
WORKSPACE is deprecated in the upcoming Bazel 8 release and will be removed entirely in Bazel 9. fhir is relatively painful to setup in a new project and bzlmod will make this much easier. Are there any plans to move to bzlmod soon?
For anyone interested, I've have a branch with bzlmod support here: https://github.com/ewhauser/fhir/tree/bzlmod.
There is probably a better way to get resolutions working correctly, but I had to put the following gazelle directives in to get proto's to resolve using this module:
# gazelle:resolve_regexp go github.com/google/fhir/go/proto/google/fhir/proto/r4/core/([a-z_]+_go_proto) @com_google_fhir//proto/google/fhir/proto/r4/core:$1
# gazelle:resolve_regexp go github.com/google/fhir/go/proto/google/fhir/proto/r4/core/resources/([a-z_]+_go_proto) @com_google_fhir//proto/google/fhir/proto/r4/core/ resources:$1
# gazelle:resolve go github.com/google/fhir/go/fhirversion @com_google_fhir//go/fhirversion
# gazelle:resolve go github.com/google/fhir/go/jsonformat @com_google_fhir//go/jsonformat