Repository: chanzuckerberg/fogg
Pull request #496 (2020-09-23 21:02:32)

install fogg from tagged release
Rather than install from master (which is moving to main), install from
the version in question.

### Test Plan
* unit tests

### References

codecov-commenter: # [Codecov](https://codecov.io/gh/chanzuckerberg/fogg/pull/496?src=pr&el=h1) Report
> Merging [#496](https://codecov.io/gh/chanzuckerberg/fogg/pull/496?src=pr&el=desc) into [main](https://codecov.io/gh/chanzuckerberg/fogg/commit/10cfece04afc8f8635bfe9ca28e9e2622dd2905f?el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/chanzuckerberg/fogg/pull/496/graphs/tree.svg?width=650&height=150&src=pr&token=57DhtZ7g2A)](https://codecov.io/gh/chanzuckerberg/fogg/pull/496?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##             main     #496   +/-   ##
=======================================
  Coverage   57.94%   57.94%           
=======================================
  Files          19       19           
  Lines        1750     1750           
=======================================
  Hits         1014     1014           
  Misses        580      580           
  Partials      156      156           
```



------

[Continue to review full report at Codecov](https://codecov.io/gh/chanzuckerberg/fogg/pull/496?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/chanzuckerberg/fogg/pull/496?src=pr&el=footer). Last update [10cfece...c555a0c](https://codecov.io/gh/chanzuckerberg/fogg/pull/496?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).


Patch:
diff --git a/README.md b/README.md
index e758ca42..fb9ea742 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # fogg
 
-[![Build Status](https://travis-ci.com/chanzuckerberg/fogg.svg?token=JNM9vNLfRsFzCcF1uEgc&branch=master)](https://travis-ci.com/chanzuckerberg/fogg) [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/chanzuckerberg/fogg)
+[![Build Status](https://travis-ci.com/chanzuckerberg/fogg.svg?token=JNM9vNLfRsFzCcF1uEgc&branch=main)](https://travis-ci.com/chanzuckerberg/fogg) [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/chanzuckerberg/fogg)
 
 **Please note**: If you believe you have found a security issue, _please responsibly disclose_ by contacting us at [security@chanzuckerberg.com](mailto:security@chanzuckerberg.com).
 
diff --git a/templates/repo/Makefile.tmpl b/templates/repo/Makefile.tmpl
index a2ebd1d4..c9647c90 100644
--- a/templates/repo/Makefile.tmpl
+++ b/templates/repo/Makefile.tmpl
@@ -10,7 +10,7 @@ ACCOUNTS={{ .Accounts | dict | keys | sortAlpha | join " "}}
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin v{{.Version}}
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/v{{ .Version }}/download.sh | bash -s -- -b .fogg/bin v{{.Version}}
 	.fogg/bin/fogg setup
 .PHONY: setup
 


Test patch:
diff --git a/testdata/bless_provider_yaml/Makefile b/testdata/bless_provider_yaml/Makefile
index 10943c9e..c7f9fe31 100644
--- a/testdata/bless_provider_yaml/Makefile
+++ b/testdata/bless_provider_yaml/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=foo
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup
 
diff --git a/testdata/circleci/Makefile b/testdata/circleci/Makefile
index daf62166..3f8aa10d 100644
--- a/testdata/circleci/Makefile
+++ b/testdata/circleci/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup
 
diff --git a/testdata/github_actions/Makefile b/testdata/github_actions/Makefile
index daf62166..3f8aa10d 100644
--- a/testdata/github_actions/Makefile
+++ b/testdata/github_actions/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup
 
diff --git a/testdata/github_provider_yaml/Makefile b/testdata/github_provider_yaml/Makefile
index 6182b632..b5530fba 100644
--- a/testdata/github_provider_yaml/Makefile
+++ b/testdata/github_provider_yaml/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=foo
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup
 
diff --git a/testdata/okta_provider_yaml/Makefile b/testdata/okta_provider_yaml/Makefile
index 6182b632..b5530fba 100644
--- a/testdata/okta_provider_yaml/Makefile
+++ b/testdata/okta_provider_yaml/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=foo
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup
 
diff --git a/testdata/snowflake_provider_yaml/Makefile b/testdata/snowflake_provider_yaml/Makefile
index 10943c9e..c7f9fe31 100644
--- a/testdata/snowflake_provider_yaml/Makefile
+++ b/testdata/snowflake_provider_yaml/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=foo
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup
 
diff --git a/testdata/tfe_provider_yaml/Makefile b/testdata/tfe_provider_yaml/Makefile
index 6182b632..b5530fba 100644
--- a/testdata/tfe_provider_yaml/Makefile
+++ b/testdata/tfe_provider_yaml/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=foo
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup
 
diff --git a/testdata/v2_full_yaml/Makefile b/testdata/v2_full_yaml/Makefile
index 9107110d..dbeb64c1 100644
--- a/testdata/v2_full_yaml/Makefile
+++ b/testdata/v2_full_yaml/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=bar foo
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup
 
diff --git a/testdata/v2_minimal_valid_yaml/Makefile b/testdata/v2_minimal_valid_yaml/Makefile
index daf62166..3f8aa10d 100644
--- a/testdata/v2_minimal_valid_yaml/Makefile
+++ b/testdata/v2_minimal_valid_yaml/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup
 
diff --git a/testdata/v2_no_aws_provider_yaml/Makefile b/testdata/v2_no_aws_provider_yaml/Makefile
index ffac0cc0..0db57b12 100644
--- a/testdata/v2_no_aws_provider_yaml/Makefile
+++ b/testdata/v2_no_aws_provider_yaml/Makefile
@@ -10,7 +10,7 @@ ACCOUNTS=
 all: check
 
 setup: ## set up working directory by installing dependencies
-	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/master/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
+	curl -s https://raw.githubusercontent.com/chanzuckerberg/fogg/vundefined+undefined+dirty/download.sh | bash -s -- -b .fogg/bin vundefined+undefined+dirty
 	.fogg/bin/fogg setup
 .PHONY: setup