Skip to content

Relocate internal packages and update imports#704

Merged
wallrj-cyberark merged 1 commit intomasterfrom
top-level-internal
Sep 4, 2025
Merged

Relocate internal packages and update imports#704
wallrj-cyberark merged 1 commit intomasterfrom
top-level-internal

Conversation

@wallrj-cyberark
Copy link
Member

@wallrj-cyberark wallrj-cyberark commented Aug 30, 2025

There are some cyberark test utils which I want to use in the cmd/ tests (#707), but can't because:

Code in or below a directory named "internal" is importable only by code in the directory tree rooted at the parent of "internal". Here's an extended version of the directory layout above
-- https://pkg.go.dev/cmd/go#hdr-Internal_Directories

  • Moved pkg/internal/ to internal/ to align with Go's internal package conventions.
  • Updated all relevant import paths to reflect the new package structure.
  • Adjusted make/test-unit.mk to include the new directory structure in test coverage.
  • Ensured all tests and mock data are updated to work with the new structure.

- Moved `pkg/internal/` to `internal/` to align with
  [Go's internal package conventions](https://go.dev/doc/modules/layout#package-or-command-with-supporting-packages).
- Updated all relevant import paths to reflect the new package structure.
- Adjusted `make/test-unit.mk` to include the new directory structure in test coverage.
- Ensured all tests and mock data are updated to work with the new structure.

Signed-off-by: Richard Wall <richard.wall@cyberark.com>
@wallrj-cyberark wallrj-cyberark marked this pull request as ready for review September 4, 2025 08:43
@wallrj-cyberark wallrj-cyberark merged commit f3db885 into master Sep 4, 2025
2 checks passed
@wallrj-cyberark wallrj-cyberark deleted the top-level-internal branch September 4, 2025 08:44
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