Skip to content

cedar-go: remove vendor directory#87

Merged
patjakdev merged 1 commit intocedar-policy:mainfrom
strongdm:remove-vendor-dir
Apr 18, 2025
Merged

cedar-go: remove vendor directory#87
patjakdev merged 1 commit intocedar-policy:mainfrom
strongdm:remove-vendor-dir

Conversation

@patjakdev
Copy link
Copy Markdown
Collaborator

Issue #, if available:

Description of changes:

Having a vendor directory for a library module like the SDK is of dubious value generally. Ultimately, the library will be consumed by an executable binary whose final set of dependencies will be determined by looking at all of its transitive library dependencies and our set of vendored dependencies will be ignored in that process.

I did a survey of a few dozen of the most popular Go libraries and couldn't find another instance of an library module vendoring its dependencies.

Having a vendor directory for a library module like the SDK is of dubious value generally. Ultimately, the library will be consumed by an executable binary whose final set of dependencies will be determined by looking at all of its transitive library dependencies and our set of vendored dependencies will be ignored in that process.

I did a survey of a few dozen of the most popular Go libraries and couldn't find another instance of an library module vendoring its dependencies.

Signed-off-by: Patrick Jakubowski <patrick.jakubowski@strongdm.com>
@patjakdev patjakdev marked this pull request as ready for review April 18, 2025 16:10
@patjakdev patjakdev requested review from apg and philhassey April 18, 2025 16:15
@patjakdev patjakdev merged commit f574d16 into cedar-policy:main Apr 18, 2025
3 checks passed
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