Stream: IG creation
Topic: Generating packages with snapshots
Torben M. Hagensen (Sep 23 2020 at 10:15):
I have a situation where two projects are being developed in parallel. both having a CI build by auto-ig-publisher. One of the projects use the other as a package reference. As that project uses SUSHI it requires the package to contain snaphots, but the auto-ig-publisher does not seem support that. When I check the package in my local cache, it doesn't contain snapshots
Is there a way to fix that? I would like to avoid publishing the referenced project as more than a CI build at the current stage.
Grahame Grieve (Sep 23 2020 at 10:20):
the packages generated by the IG publisher always contain snapshots, so I don't understand your question
Torben M. Hagensen (Sep 23 2020 at 11:14):
Grahame Grieve said:
the packages generated by the IG publisher always contain snapshots, so I don't understand your question
Maybe the issue relates to the way I reference it in FHIR Shorthand? (if so I can bring the discussion to the shorthand stream)
When I do like this in config.yaml:
dependencies:
hl7.fhir.myproject:
uri: https://build.fhir.org/ig/tmh-mjolner/myproject/branches/some-branch
version: 0.1.0
... it generates a local cache of the package and it within that I can't find any snapshots. SUSHI complains with the following error: "Structure Definition <xxx> is missing snapshot. Snapshot is required for import."
Shouldn't that be possible?
Grahame Grieve (Sep 23 2020 at 11:18):
it generates
What generates?
Torben M. Hagensen (Sep 23 2020 at 11:39):
Grahame Grieve said:
it generates
What generates?
Well generates is probably not the right word, sorry.
It happens when running sushi. I says
...
-Downloading package hl7.fhir.myproject#0.1.0
-Loaded package hl7.fhir.myproject#0.1.0
...
the download part creates a local package folder cache in my user folder
A bit further down the output from sushi it complains about the missing snapshot
Grahame Grieve (Sep 23 2020 at 11:43):
I don't know what hl7.fhir.myproject is, but you shouldn't be using it anywa y
Torben M. Hagensen (Sep 23 2020 at 11:44):
Grahame Grieve said:
I don't know what hl7.fhir.myproject is, but you shouldn't be using it anywa y
That's not the real name - it's the other project that is being developed in parallel
Grahame Grieve (Sep 23 2020 at 11:47):
well, I can't see any evidence that it's ever been built on the ci-build, or that it's in a package server
Torben M. Hagensen (Sep 23 2020 at 11:48):
Grahame Grieve said:
well, I can't see any evidence that it's ever been built on the ci-build, or that it's in a package server
Torben M. Hagensen said:
Grahame Grieve said:
I don't know what hl7.fhir.myproject is, but you shouldn't be using it anywa y
That's not the real name - it's the other project that is being developed in parallel
I basically just want to be able to develop on two projects in parallel and have the one use the CI build of the other as package
2 seconds - I'll give you the real names
Grahame Grieve (Sep 23 2020 at 11:48):
if that's not it's real name, give me the real name on the ci-build and I can have a look
Grahame Grieve (Sep 23 2020 at 11:49):
I basically just want to be able to develop on two projects in parallel and have the one use the CI build of the other as package
You can but you have to use the special version current
in your dependency which means to get whatever the CI build last built
Torben M. Hagensen (Sep 23 2020 at 11:51):
Referenced project: https://build.fhir.org/ig/hl7dk/dk-core/
Referring project: https://build.fhir.org/ig/hl7dk/dk-medcom/branches/new-care-communication-profile (currently fails)
Torben M. Hagensen (Sep 23 2020 at 11:53):
Grahame Grieve said:
I basically just want to be able to develop on two projects in parallel and have the one use the CI build of the other as package
You can but you have to use the special version
current
in your dependency which means to get whatever the CI build last built
Didn't seem to work in FHIR Shorthand (maybe I did it wrong)
Grahame Grieve (Sep 23 2020 at 11:53):
the profiles in https://build.fhir.org/ig/hl7dk/dk-core/package.tgz have snapshots, as they should.
Grahame Grieve (Sep 23 2020 at 11:53):
so the question appears to be something to do with sushi
Torben M. Hagensen (Sep 23 2020 at 11:54):
Grahame Grieve said:
the profiles in https://build.fhir.org/ig/hl7dk/dk-core/package.tgz have snapshots, as they should.
Yes, I have also seen that, but the download mad by sushi does not seem to?
Torben M. Hagensen (Sep 23 2020 at 11:59):
Grahame Grieve said:
so the question appears to be something to do with sushi
I will ask on the shorthand stream - hope some sushi shark can help
Thanks a lot for the help. Now it has some weight stating that it must be a sushi issue ;-)
Torben M. Hagensen (Sep 24 2020 at 07:06):
Torben M. Hagensen said:
Thanks a lot for the help. Now it has some weight stating that it must be a sushi issue ;-)
Just want to let you known that the problem is solved.
I was not using sushi correctly. Declaring the dependency correctly as this:
hl7.fhir.dk-core: current
in config.yaml solved the problem
Thanks again for the help
Last updated: Apr 12 2022 at 19:14 UTC