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

Fix namespace for types in Cake.GitLabCI.Module #190

Merged

Conversation

ap0llo
Copy link
Contributor

@ap0llo ap0llo commented Feb 16, 2024

When the GitLab CI module was introduced initially (see !165), the types were placed in the 'Cake.AzurePipelines.Module' namespace by accident.
To fix this and make the namespaces consistent with the package and assembly structure, move all types to the 'Cake.GitLabCI.Module' namespace.

While this is a breaking change, the impact is mitigated in two ways:

  • Builds using the Cake scripting runner automatically discover modules by looking for the 'CakeModule' attribute. The change should thus be transparent to these projects
  • For Cake.Frosting based builds, a second "GitLabCIModule" type is kept in the Cake.AzurePipelines.Module namespace so the module should be source-compatible with earlier versions

The GitLabCIModule in Cake.AzurePipelines.Module was marked as obsolete to discourage usage.

@ap0llo ap0llo force-pushed the fix-namespaces-in-gitlab-ci-module branch from 3f68217 to e758601 Compare February 16, 2024 22:22
@nils-a nils-a added this to the vNext milestone Feb 16, 2024
When the GitLab CI module was introduced initially, the types were placed in the 'Cake.AzurePipelines.Module' namespace by accident.
To fix this and make the namespaces consistent with the package and assembly structure, move all types to the 'Cake.GitLabCI.Module' namespace.

While this is a breaking change, the impact is mitigated in two ways:

- Builds using the Cake scripting runner automatically discover modules by looking for the 'CakeModule' attribute. The change should thus be transparent to these projects
- For Cake.Frosting based builds, a second "GitLabCIModule" type is kept in the Cake.AzurePipelines.Module namespace so the module should be source-compatible with earlier versions

The GitLabCIModule in Cake.AzurePipelines.Module was marked as obsolete to discourage usage.
@nils-a nils-a force-pushed the fix-namespaces-in-gitlab-ci-module branch from e758601 to 23257ef Compare February 19, 2024 21:04
@nils-a nils-a enabled auto-merge February 19, 2024 21:04
@nils-a nils-a merged commit acfe8b4 into cake-contrib:develop Feb 19, 2024
5 checks passed
@nils-a
Copy link
Contributor

nils-a commented Feb 19, 2024

@ap0llo your changes have been merged, thanks for your contribution 👍

@nils-a nils-a modified the milestones: vNext, 7.0.0 Feb 19, 2024
@cake-contrib-bot
Copy link

🎉 This issue has been resolved in version 7.0.0 🎉
The release is available on:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants