Stream: IG creation
Topic: how to get id-pub to download template
Eric Haas (Jan 25 2020 at 02:16):
What is the process for getting the ig-pub to download template from github.. e.g from:
https://github.com/Healthedata1/hl7-ig-template/tree/IG4-Template using "healthedata.fhir.template"
for testing?
right is local which works fine but I could not find any doco how to do this?
Lloyd McKenzie (Jan 25 2020 at 04:55):
Just specify the full local path to the template instead of a template id
Eric Haas (Jan 28 2020 at 20:14):
From this I gather can’t point to any old remote github repro
Grahame Grieve (Jan 28 2020 at 20:23):
yes you can - just give the repo url
Bryn Rhodes (Feb 24 2020 at 03:49):
What about if the template is a dependency in another template?
Grahame Grieve (Feb 24 2020 at 03:52):
I don't understand?
Bryn Rhodes (Feb 24 2020 at 04:09):
I have a template that depends on another template, and the IG publisher can't download either one. I can use the ini file to point the publisher to a local copy for the first dependency, but the transitive dependency is in the other template, so I can't use that, and I haven't seen a way to tell the IG publisher where to get the template?
Grahame Grieve (Feb 24 2020 at 04:09):
for dependencies, you have to use the package system
Grahame Grieve (Feb 24 2020 at 04:10):
the first template, you can refer to it by path, but it has to refer to it by package id
Bryn Rhodes (Feb 24 2020 at 04:10):
So here's the example: https://github.com/who-int/anc-cds/blob/RecB11/ig.ini
Bryn Rhodes (Feb 24 2020 at 04:10):
So how do I tell the package system where to find the who.fhir.template?
Grahame Grieve (Feb 24 2020 at 04:10):
if you use the version dev
this means that it will use whatever you have locally over what is built by ci-build
Bryn Rhodes (Feb 24 2020 at 04:11):
Ah, gotcha.
Bryn Rhodes (Feb 24 2020 at 04:11):
So who.fhir.template#dev
Bryn Rhodes (Feb 24 2020 at 04:21):
So, we don't build the templates, how do I get a template installed in my local package cahce?
Bryn Rhodes (Feb 24 2020 at 04:21):
Just copy the package directory?
Grahame Grieve (Feb 24 2020 at 04:26):
if you build it locally, it gets installed in your package directory as dev
. If you don't build it locally, you won't have a dev version, and it will fall back to current
Grahame Grieve (Feb 24 2020 at 04:26):
you have to build it - you can't just copy the source. For the package cache, at least
Bryn Rhodes (Feb 24 2020 at 04:27):
Build the template?
Grahame Grieve (Feb 24 2020 at 04:27):
ye, like you would build an ig. Just point the igpublisher at it
Grahame Grieve (Feb 24 2020 at 04:28):
it knows what to do with a template
Last updated: Apr 12 2022 at 19:14 UTC