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

Make this repository a template #110

Open
nbstrong opened this issue Dec 5, 2021 · 4 comments
Open

Make this repository a template #110

nbstrong opened this issue Dec 5, 2021 · 4 comments

Comments

@nbstrong
Copy link

nbstrong commented Dec 5, 2021

Github has template support now. This repository is a template and should be one.

@adamgreig
Copy link
Member

Currently this repository is designed to be used with cargo generate, which means there are a bunch of placeholder values which are not valid if you just copy the repository (mainly in Cargo.toml).

Making it a GitHub template is a nice idea, but it might be annoying that it wouldn't work out the box without replacing all the things cargo generate replaces, and if someone uses cargo generate, they probably don't need it to be a GitHub template, since cargo generate will copy the files for them anyway.

I've not used cargo generate myself though, maybe it would be more convenient to just be a GitHub template?

@nbstrong
Copy link
Author

nbstrong commented Dec 5, 2021

It really would and imo I'd prefer to have one less tool installed on my system I have to figure out. Furthermore, you'd gain having a reference back to the upstream you can pull updates from.

The only issue is pointing the project variables to the app name and author.

The less ideal solution would be to run a script that changes them. Id prefer it automatically infer it from the base git repo name (folder by reference or better?) which you set when forking from the template repository.

@nbstrong
Copy link
Author

nbstrong commented Dec 5, 2021

These appear to be all the placeholders
image

@nbstrong
Copy link
Author

nbstrong commented Dec 5, 2021

This post seemed to discuss a solution by combining Github Actions:
https://stefanbuck.com/blog/repository-templates-meets-github-actions

I am working on a prototype on my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants