fhir icon indicating copy to clipboard operation
fhir copied to clipboard

FR: bzlmod support

Open ewhauser opened this issue 1 year ago • 1 comments

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?

ewhauser avatar Oct 25 '24 22:10 ewhauser

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

ewhauser avatar Jun 26 '25 17:06 ewhauser