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

Generate GIT-REPO#version versions in bower.json for packages that are not found in Bower. #324

Merged
merged 19 commits into from
Jul 19, 2019

Conversation

Dretch
Copy link
Collaborator

@Dretch Dretch commented Jul 15, 2019

This is a follow-on from #303.

Checklist:

  • Added a test for the contribution (if applicable)

src/Spago/Bower.hs Outdated Show resolved Hide resolved
src/Spago/Bower.hs Outdated Show resolved Hide resolved
@Dretch Dretch marked this pull request as ready for review July 17, 2019 18:41
deps <- Packages.getDirectDeps config

for deps $ \(PackageName{..}, Package{..}) -> do
Copy link
Member

Choose a reason for hiding this comment

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

I was wondering if we should do this in parallel, as from what I've seen bower info can be quite slow. We could use an async pool like we do here, or just mapTasks as we don't need the fancy error handling

Copy link
Member

Choose a reason for hiding this comment

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

(this is not a requirement for merging, just noting that it might a bottleneck on larger packages)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah - done. Bower info is pretty slow (it takes a couple of seconds per call here, but I do have very high latency internet).

Copy link
Member

@f-f f-f left a comment

Choose a reason for hiding this comment

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

Thanks @Dretch, good work! (especially with the Windows stuff 😄)

@f-f f-f mentioned this pull request Jul 19, 2019
3 tasks
@Dretch Dretch merged commit aa1a327 into master Jul 19, 2019
@Dretch Dretch deleted the remove-metadata-check-in-version branch July 19, 2019 19:21
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.

None yet

2 participants