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

Publishing suddenly fails with "VCS Url is not matching with the pluginId" #221

Closed
SgtSilvio opened this issue May 31, 2024 · 4 comments
Closed
Labels
a:bug Something isn't working

Comments

@SgtSilvio
Copy link

Expected Behavior

Publishing a new version of an already existing plugin should not start to fail although it worked previously with the same plugin id.

Current Behavior

Execution failed for task ':publishPlugins'.
> Failed to post to server.
  Server responded with:
  VCS Url is not matching with the pluginId

Full log: https://github.com/SgtSilvio/gradle-oci/actions/runs/9317789173/job/25650885046

Context

I am unable to publish a new version of the Gradle OCI Plugin (https://github.com/SgtSilvio/gradle-oci).
Already tried to find out the problem with debug logging, but I don't get more information than it fails because the plugin portal returns a 403 with the message "VCS Url is not matching with the pluginId".

Steps to Reproduce

This can be reproduced with rerunning the GitHub workflow: https://github.com/SgtSilvio/gradle-oci/actions/runs/9317789173/job/25650885046

Your Environment

Publishing via GitHub Actions

@SgtSilvio SgtSilvio added the a:bug Something isn't working label May 31, 2024
@SgtSilvio
Copy link
Author

I might have found the issue.
My GitHub name SgtSilvio includes uppercase letters, so the vcs url is https://github.com/SgtSilvio/gradle-oci.git.
The plugin id starts with io.github.sgtsilvio.
It seems the comparison of SgtSilvio and sgtsilvio does not work anymore, but it did previously, so I would consider this a regression.

The last time I published a plugin (https://github.com/SgtSilvio/gradle-metadata/releases/tag/v0.6.0) was 2 weeks ago and back then it still worked.

@fourlastor
Copy link

Having a similar issue with https://plugins.gradle.org/plugin/io.github.fourlastor.construo

The latest release run: https://github.com/fourlastor-alexandria/construo/actions/runs/9416647187/job/25940212839

In my case, the VCS url is pointing to an org I use to organise my repositories (so not just a text case issue), which up until last release was working (and the plugin portal correctly shows the GitHub url in version 1.1.1)

@ljacomet
Copy link
Member

Sorry for the late reply

This was caused by a change on our side that looked good on paper ... but is wrong in practice.

We are working on fixing that. Please be patient with us for now. As soon as the fix is live, we will update this issue and your plugin should be accepted by the Gradle Plugin Portal.

@ljacomet
Copy link
Member

A fix has been deployed. Please let us know if you still get a rejection (you really should not)

SgtSilvio added a commit to SgtSilvio/gradle-oci that referenced this issue Jul 17, 2024
SgtSilvio added a commit to SgtSilvio/gradle-oci that referenced this issue Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants