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

Expand the ManyVersions error message #379

Conversation

francesco086
Copy link
Contributor

Contributes to #377

@codecov-commenter
Copy link

codecov-commenter commented Jul 31, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (c82563d) 85.36% compared to head (43b7309) 85.36%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #379   +/-   ##
=======================================
  Coverage   85.36%   85.36%           
=======================================
  Files          18       18           
  Lines        2125     2125           
=======================================
  Hits         1814     1814           
  Misses        311      311           
Files Changed Coverage Δ
gto/exceptions.py 70.40% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -83,7 +83,7 @@ def __init__(self, name) -> None:


class ManyVersions(GTOException):
_message = "'{versions}' versions of artifact '{name}' found"
_message = "Multiple versions ('{versions}') of artifact '{name}' found on the same git commit. Multiple versions are not allowed."
Copy link
Member

Choose a reason for hiding this comment

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

nit: Multiple versions are not allowed on the same Git commit. Found of an artifact on

wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I am not able to understand your suggestion: "Found of an artifact on"?

Would this be ok?
Multiple versions are not allowed on the same Git commit. Violation detected for artifact '{name}', versions '{versions}'.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just in case it is good, I pushed the change.

Copy link
Member

Choose a reason for hiding this comment

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

thanks!

Copy link
Member

@shcheklein shcheklein left a comment

Choose a reason for hiding this comment

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

A minor comment. Thanks @francesco086 . Overall we can go as is. Let me know.

@shcheklein shcheklein merged commit 73b1dfb into iterative:main Aug 1, 2023
Copy link
Contributor

Choose a reason for hiding this comment

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

@francesco086 was this addition intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course. Not. 😅
Sry about that

pmrowla added a commit that referenced this pull request Aug 8, 2023
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.

4 participants