Skip to content
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

Add support for "lookup latest release in GitHub" #8

Open
josh-padnick opened this issue Sep 8, 2016 · 2 comments
Open

Add support for "lookup latest release in GitHub" #8

josh-padnick opened this issue Sep 8, 2016 · 2 comments
Labels
enhancement New feature or request p:queued

Comments

@josh-padnick
Copy link
Contributor

Many of my boilerplate variables are just a asking what GitHub release / git tag I want from a given repo. The default is the latest version at the time the author wrote the boilerplate.yml file so I can never trust that it is in fact the latest.

Therefore, it'd be nice if I could specify some kind of github-latest-release plugin in boilerplate that would compute my default value instead of just using a default literal.

Example:

What version of module-security should we use? (default: latest release (currently 'v0.1.0')):
@brikis98
Copy link
Member

brikis98 commented Sep 8, 2016

The trickiest question is how to handle this in a generic way that would make sense as part of boilerplate core. Looking up GitHub release data, especially for private repos, can get pretty damn messy...

@josh-padnick
Copy link
Contributor Author

That's a good point. I think a "plugin" architecture that cleanly separates the complexity of github release lookups from boilerplate core is the only way. For example, here's how Vault handles different auth backends:

https://github.com/hashicorp/vault/tree/6beadc1e1c9c7d317ef8074eaa3f26dfcc936f4d/builtin/credential

I'm pretty sure they all implement some common interface. In our case, we could have a plugin concept for "ways of computing a default", define an interface, and then write whatever plugins we want. To get the latest release from GitHub, we could copy a bunch of code from fetch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p:queued
Projects
None yet
Development

No branches or pull requests

3 participants