From d24f1e81638ff8eac7f963996b995b58c0d899fe Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Thu, 27 Sep 2018 08:28:02 -0400 Subject: Add version override capability similar to the JWST recipe. --- hstcal/meta.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hstcal/meta.yaml b/hstcal/meta.yaml index 3fd0447..c51e721 100644 --- a/hstcal/meta.yaml +++ b/hstcal/meta.yaml @@ -29,6 +29,12 @@ requirements: - libgcc >=4.7 source: + # The git rev may be overridden by setting an env var with the name + # "ASCO_GIT_REV_" before building the recipe. + # i.e "ASCO_GIT_REV_hstcal=2.0.0" + # The value may be a git full hash, short hash, branch, or tag name. + # The default value is "master". + git_rev: {{ environ.get("ASCO_GIT_REV_"+name, "master") }} git_url: https://github.com/spacetelescope/{{ name }}.git test: -- cgit