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

allow commands in subpackages #4696

Closed
wants to merge 1 commit into from
Closed

Conversation

phil9909
Copy link
Contributor

The cmd package gets bigger and bigger.

With this change a command can be moved to a sub-package (using the metadata yaml).

This should make the code more navigatable and speed up go compilation when iterating locally i.e. running go test, do some changes, go test, changes, ... (AFAIK the compilation unit in go is a package and if anything changes in that package, the whole package has to be recompiled).

For now I only moved the cnbBuild command to an subpackage. But with this changes it should be rather easy to move further commands (e.g. move all abap... commands into a common abap package).

@phil9909 phil9909 requested review from a team as code owners November 24, 2023 11:44
Copy link

sonarcloud bot commented Nov 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

Thank you for your contribution! This pull request is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

@github-actions github-actions bot added the stale marks stale issues and pull requests label Jan 24, 2024
Copy link
Contributor

github-actions bot commented Feb 4, 2024

Pull request got stale and no further activity happened. It has automatically been closed. Please re-open in case you still consider it relevant.

@github-actions github-actions bot closed this Feb 4, 2024
@loewenstein
Copy link

@anilkeshav27 did you see this? It might be well worth a step to tackle the monolith nature of the Piper library.

If I remember correctly, we discussed this in the architecture meeting and everyone considered it problematic but tough to tackle. Maybe this is worth a look as a small step in this direction.

@phil9909
Copy link
Contributor Author

phil9909 commented Feb 5, 2024

After I opened this PR, I had a DM with @OliverNocon. He seemed interested, but recommended to address this with @CCFenner. I pinged him and didn't hear back since. Maybe I should have pinged him again, what I hereby do now 😆, but actually I don't think it should be required to actively ping people for reviews after opening a PR just to get a review (might be fair if you need it fast).

Anyway, as I already said back then: I guess this could be split into multiple PRs, e.g. one that changes the generator and one that actually moves the cnbBuild command into a subpackage.

@phil9909 phil9909 reopened this Feb 5, 2024
@phil9909 phil9909 removed the stale marks stale issues and pull requests label Feb 5, 2024
Copy link

sonarcloud bot commented Feb 5, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

github-actions bot commented Apr 6, 2024

Thank you for your contribution! This pull request is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

@github-actions github-actions bot added the stale marks stale issues and pull requests label Apr 6, 2024
Copy link
Contributor

Pull request got stale and no further activity happened. It has automatically been closed. Please re-open in case you still consider it relevant.

@github-actions github-actions bot closed this Apr 17, 2024
@CCFenner
Copy link
Member

similar to #4906

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale marks stale issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants