-
Notifications
You must be signed in to change notification settings - Fork 22
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
github resolver shorthand hardcodes default branch #40
Comments
And, I immediately had an idea. What about,
Where |
@pbrisbin what about the solution we use for Stack templates - https://github.com/commercialhaskell/stack/blob/255cd830627870cdef34b5e54d670ef07882523e/src/Stack/New.hs#L206-L208 ? |
What version of the object does the |
Sure, the point is to have |
I don't think we can do both, can we?
(1) will open up (2) will respect default branch, but cannot be used to select not default branch. What am I missing? |
I guess we should have information whether |
BTW api.github.com also supports branches, see https://api.github.com/repos/commercialhaskell/stack/contents/README.md?ref=master |
Neat. Seems like API + githubSnapshotLocation :: Text -> Text -> Text -> RawSnapshotLocation And expected to give a URL directly to the content (not to an API with a I like the way Pantry's machinery (unlike templates) is just a series of syntactic expansions from (e.g.) So maybe worth it, but it would expand the diff significantly to implement. |
We're experimenting with remote, custom snapshots and wanted to use the
github:user:repo:path
shorthand, but we can't because we usemain
as our default branch and it expands to master.I'm not sure how you would go about addressing this limitation, but I just wanted to raise it and see what you thought. I'm happy to implement the fix, if we can come up with one.
The text was updated successfully, but these errors were encountered: