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

Do not warn on duplicate entries if force_version set #1334

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fzakaria
Copy link

Augment coursier to detect if force_version is set on a single artifact and omit the warning then.

fixes #1333

Convert an artifact to a maven coordinate string.
"""

return artifact["group"] + ":" + artifact["artifact"] + (":%s" % artifact["classifier"] if artifact.get("classifier") != None else "")
Copy link
Collaborator

Choose a reason for hiding this comment

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

The coordinate handling code is now in //private/lib:coordinates.bzl. You likely want to use to_external_form here, or perhaps add an additional function.

seen_artifacts[artifact_coordinate] = artifact

# go through the duplicate_artifacts and if the list of artifacts contains exactly one with force_version set to True
# remove it from teh duplicate_artifacts entry
Copy link
Collaborator

Choose a reason for hiding this comment

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

s/teh/the/

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.

Remove diagnostic warning if force_version is set
2 participants