Skip to content

Conversation

bernielomax
Copy link
Contributor

These refactors address package organization issues that contradict Go standards. Currently, shared utilities like helm, k8s, docker, and airbyte are nested under internal/cmd/local/ which makes them command-specific when they should be available to any command. This also prepares for eliminating the stuttering internal/cmd/local/local/ structure.

Changes in this PR:

  • Move internal/cmd/local/{helm,k8s,docker,airbyte,paths}/ to internal/ packages
  • Move internal/cmd/local/localerr.LocalError to internal/abctl.Error
  • Paves the way for moving internal/cmd/local/local/ to internal/cmd/local/ which IMO causes confusion, and does not provide ample separation between domains.

@bernielomax bernielomax marked this pull request as ready for review June 27, 2025 02:13
@bernielomax bernielomax requested a review from a team as a code owner June 27, 2025 02:13
@bernielomax bernielomax changed the title refactor: Restructure packages refactor: restructure packages Jun 27, 2025
@bernielomax
Copy link
Contributor Author

I'm not sure why CI is failing. Everything looks Ok locally. I'll have a look tomorrow.

@bernielomax bernielomax force-pushed the bernielomax/refactor/restructure-packages branch from 8851e0e to 780aa8a Compare June 27, 2025 16:10
@bernielomax bernielomax force-pushed the bernielomax/refactor/restructure-packages branch from 780aa8a to d437d37 Compare June 27, 2025 16:16
@bernielomax
Copy link
Contributor Author

@colesnodgrass this PR should be good to go. Hope you don't mind the changes. I kept going in circles between local and local/local package. So this paves the way to cleaning that up.

Copy link
Member

@colesnodgrass colesnodgrass left a comment

Choose a reason for hiding this comment

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

As with most wtf code there is a story of why and how it ended up where it did. I'm always in favor of cleaning things up, making them more logical, more sane, more manageable.

@bernielomax bernielomax merged commit 764b9d4 into main Jun 27, 2025
2 checks passed
@bernielomax bernielomax deleted the bernielomax/refactor/restructure-packages branch June 27, 2025 23:22
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.

2 participants