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 properties and environment when fetching metals #1498

Merged
merged 4 commits into from
May 12, 2024

Conversation

mliarakos
Copy link
Contributor

Fixes #1497

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Looks good! Just one small suggestion. Thanks for working on this!

}: FetchMetalsOptions): Promise<PackedChildPromise> {
const serverDependency = calcServerDependency(serverVersion);

const fetchProperties = serverProperties.filter(
Copy link
Contributor

Choose a reason for hiding this comment

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

I would just warn here, since we do debug metals sometimes and that requires setting debug settings.

Alternatively we could check if it's set to quiet=y.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I restored that filter call from v1.29.0, but I'm not familiar with why it was there to being with.

To make sure I understand, are you asking to emit a warning message if -agentlib is present indicating that it isn't being passed to Coursier?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ach right, my bad. I forgot it was just for coursier, I assumed too much 😓 It's fine as it is, thanks!

@mliarakos mliarakos requested a review from tgodzik May 12, 2024 15:05
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

}: FetchMetalsOptions): Promise<PackedChildPromise> {
const serverDependency = calcServerDependency(serverVersion);

const fetchProperties = serverProperties.filter(
Copy link
Contributor

Choose a reason for hiding this comment

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

Ach right, my bad. I forgot it was just for coursier, I assumed too much 😓 It's fine as it is, thanks!

@tgodzik tgodzik merged commit 55a173d into scalameta:main May 12, 2024
10 checks passed
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.

Missing HTTP proxy settings for Coursier when fetching Metals
2 participants