8000 Fix bug detecting dependency uri when wildcard patch is used by cmoesel · Pull Request #1566 · FHIR/sushi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Fix bug detecting dependency uri when wildcard patch is used #1566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

cmoesel
Copy link
Member
@cmoesel cmoesel commented Apr 22, 2025

Description: Fix IG JSON generation code to properly match .x versioned dependencies to their official URIs. This resolves the actual version based on the dependency IGs in scope.

This issue was raised on Zulip at #shorthand > ✔ us-core uri @ 💬.

Testing Instructions:

Create a SUSHI project with the following dependency:

dependencies:
  hl7.fhir.us.core: 5.0.x

Run the currently released version of SUSHI against the project and note that the generated IG JSON lists the US Core URI as http://fhir.org/packages/hl7.fhir.us.core/ImplementationGuide/hl7.fhir.us.core, which is wrong.

Now pull down this branch of SUSHI and run npm install, then run ts-node src/app.ts build /path/to/that_same_fsh_project. The generated IG JSON should list the US Core URI as http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core.

Related Issue: Fixes #1563

Fix matching against IGs when a .x version is used in the dependency list. This resolves the version based on the IGs in scope.
@jduteau jduteau requested review from jduteau and removed request for jduteau April 22, 2025 23:08
@cmoesel
Copy link
Member Author
cmoesel commented Apr 23, 2025

Merging this based on @jduteau's review and approval which was communicated to me via another channel. Unfortunately, GitHub is mysteriously preventing him from formally reviewing it here.

@cmoesel cmoesel merged commit 6e95491 into master Apr 23, 2025
14 checks passed
@cmoesel cmoesel deleted the fix-wc-patch-uri branch April 23, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SUSHI produces wrong IG URL when wildcard patch versions are used
1 participant
0