Skip to content

refactor(server): pass name and version from request to artifact generation#2186

Merged
krzema12 merged 1 commit intomainfrom
pass-raw-name-and-raw-version-to-artifact-generation
Dec 30, 2025
Merged

refactor(server): pass name and version from request to artifact generation#2186
krzema12 merged 1 commit intomainfrom
pass-raw-name-and-raw-version-to-artifact-generation

Conversation

@krzema12
Copy link
Copy Markdown
Member

@krzema12 krzema12 commented Dec 30, 2025

This is a preliminary change making it easier to implement #1691.

Even without the above project, it makes things more straightforward. In particular, the artifact names happen to match what comes in the request, but in general it doesn't have to be the case. We need to encode certain extra information in Maven artifact's names and owners, which leads to a mismatch where the GitHub action's name isn't equal to the requested Maven artifact's name. This change recognizes it by using different fields in these two circumstances.

…ration

This is a preliminary change making it easier to implement
#1691.

Even without the above project, it makes things more straightforward.
In particular, the artifact names happen to match what comes in the
request, but in general it doesn't have to be the case.
@krzema12 krzema12 force-pushed the pass-raw-name-and-raw-version-to-artifact-generation branch from 568a52e to effbd69 Compare December 30, 2025 13:18
<metadata>
<groupId>owner</groupId>
<artifactId>name___$significantVersion</artifactId>
<artifactId>name</artifactId>
Copy link
Copy Markdown
Member Author

@krzema12 krzema12 Dec 30, 2025

Choose a reason for hiding this comment

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

The only change in behavior captured by the tests, but I don't think it's really relevant. Regarding caching, the artifacts are cached by name, not this artifactId. Whether the "significant version" mechanism works in general is tested in the end-to-end tests, see:

@file:DependsOn("gradle:actions__dependency-submission___major:[v3.3.1,v4-alpha)")
@file:DependsOn("gradle:actions__wrapper-validation___minor:[v4.2.1,v4.3-alpha)")

@krzema12 krzema12 merged commit e228b0a into main Dec 30, 2025
16 checks passed
@krzema12 krzema12 deleted the pass-raw-name-and-raw-version-to-artifact-generation branch December 30, 2025 13:30
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.

1 participant