-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
Remove SNAPSHOT suffix in version number (#914) #915
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Is there a test that can be added for this case? |
sure, I’ll add a function verification test for this scenario.
cheister ***@***.***>于2023年6月20日 周二上午7:02写道:
… Is there a test that can be added for this case?
—
Reply to this email directly, view it on GitHub
<#915 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUG6Y3B6LZST6GSRL6QSSLXMDK67ANCNFSM6AAAAAAY6Z465M>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
I just find that coursier uses different file name for SNAPSHOT and this different behavior causes the problem. |
@jianxx I'm not sure from your last comment whether you'd like us to review this patch, or leave it. Could you let us know, please? |
After I did more tests with different maven repo implementations, I can describe this issue more precisely. My previous statement with courier is not correct, and here is the detailed root cause of this issue and how my patch works.
What I did in the patch is using version string without 'SNAPSHOT' to match the artifact file, so it can work for both cases. |
This is a fix for #914 .
SNAPSHOT suffix should not be included in version number.
For maven release repository, the artifact path is something like {group}/{artifact}/{version}/{artifact}-{version}.
For maven snapshot repository, the artifact path is something like {group}/{artifact}/{version}-SNAPSHOT/{artifact}-{version}-{timestamp}-{buildNumber}.