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

Use Coursier defaults, which also adds support for COURSIER_REPOSITORIES #1524

Merged
merged 2 commits into from
Oct 11, 2019

Conversation

henricook
Copy link

@henricook henricook commented Oct 11, 2019

This is another crack at #1436 which I think is a bit easier now we've got the Coursier interface on board.

I believe that fetching Coursier's default repositories also prompts Couriser to check COURSIER_REPOSITORIES env var and couriser.repositories property - so by using defaults here we get COURSIER_REPOSITORIES compatibility

Previously the default repositories were being totally overwritten by the hard coded repository list

I believe this fulfils #1521

@henricook henricook changed the title Use Couriser defaults, which also adds support for COURSIER_REPOSITORIES Use Coursier defaults, which also adds support for COURSIER_REPOSITORIES Oct 11, 2019
Copy link
Member

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thank you!

Copy link
Member

@tanishiking tanishiking left a comment

Choose a reason for hiding this comment

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

LGTM! thanks 🎉

)
private def repositories: Array[Repository] = {
// Default repositories are ivy2local, central and also anything in COURSIER_REPOSITORIES overrides
Repository.defaults().asScala.toArray ++ Array(
Copy link
Member

Choose a reason for hiding this comment

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

@tanishiking tanishiking merged commit 7e440ce into scalameta:master Oct 11, 2019
@henricook henricook deleted the coursier-repositories branch October 11, 2019 19:02
@henricook
Copy link
Author

Thanks @tanishiking ! We're super keen to use this, are there nightly builds still? and/or when do you next plan to release?

Thanks both for the speedy review

@tanishiking
Copy link
Member

OK! Since this PR is merged, It would be good timing for releasing 2.1.1, and I'll release it now :)

@henricook
Copy link
Author

Ultimate speed 💪 - thanks!

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.

3 participants