Skip to content

Remove unused depdency from go.mod#245

Merged
jessepeterson merged 2 commits intomicromdm:mainfrom
manistal:patch-1
Apr 28, 2025
Merged

Remove unused depdency from go.mod#245
jessepeterson merged 2 commits intomicromdm:mainfrom
manistal:patch-1

Conversation

@manistal
Copy link
Contributor

@manistal manistal commented Apr 28, 2025

This PR removes the un-necessary depdency on x/crypto - It was labeled as indirect but upon investigating the dependency tree found it was completely unused.

This causes downstream knock on effects when trying to maintain backwards compatibility with older versions of golang, despite the fact that the code itself is compatible.

@jessepeterson
Copy link
Member

@manistal huh. how'd you find it was unused in the dependency tree?

Copy link
Member

@jessepeterson jessepeterson left a comment

Choose a reason for hiding this comment

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

lgtm! thanks!

@jessepeterson jessepeterson merged commit 72f493e into micromdm:main Apr 28, 2025
3 checks passed
@jessepeterson jessepeterson linked an issue Apr 28, 2025 that may be closed by this pull request
@manistal
Copy link
Contributor Author

@jessepeterson Alot of work - Essentially auditing dependencies and noticed I couldn't figure out why this repo depending on this, and the go mod why was totally empty. Ended up removing it and the build worked fine and the go mod tidy didn't re-add it, so figured it must've been legacy

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.

Remove Unused /x/Crypto Dep

2 participants