Skip to content

Support github: field in extra-deps - #39

Merged
hasufell merged 4 commits into
hasufell:masterfrom
fumieval:master
Mar 6, 2022
Merged

hasufell merged 4 commits into
hasufell:masterfrom
fumieval:master

Conversation

@fumieval

@fumieval fumieval commented Mar 3, 2022

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread lib/StackageToHackage/Stackage/YAML.hs Outdated
<$> (m .: "git" <|> github m)
<*> m .: "commit"
<*> m .:? "subdirs" .!= []
where github m = ("[email protected]:" <>) <$> (m .: "github")

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be

    where github m = (\x -> "[email protected]:" <> x <> ".git") <$> (m .: "github")

?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. AFAIU it works without ".git"

@hasufell

hasufell commented Mar 3, 2022

Copy link
Copy Markdown
Owner

I also noticed that the following is supported for snapshot location as well:

github:user/repo:path -> https://raw.githubusercontent.com/user/repo/master/path

@hasufell

hasufell commented Mar 3, 2022

Copy link
Copy Markdown
Owner

Can we add a test?

@hasufell

hasufell commented Mar 6, 2022

Copy link
Copy Markdown
Owner

ping

@hasufell
hasufell merged commit 1a4f617 into hasufell:master Mar 6, 2022
@hasufell

hasufell commented Mar 6, 2022

Copy link
Copy Markdown
Owner

@fumieval

fumieval commented Mar 7, 2022

Copy link
Copy Markdown
Contributor Author

Thanks!

Btw I didn't touch the snapshot location stuff because specifying a git location isn't supported in the original code

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

Successfully merging this pull request may close these issues.

2 participants