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

Fix discovery of Go direct dependencies #6

Merged
merged 3 commits into from Sep 6, 2022
Merged

Conversation

wescarr
Copy link
Member

@wescarr wescarr commented Sep 4, 2022

  • Instead of relying on main.go existing in root directory we use go list to list the direct dependencies and then continue with the existing approach to get indirect dependencies

- Instead of relying on main.go existing in root directory we use go list to list the direct dependencies and then continue with the existing approach to get indirect dependencies
@wescarr wescarr changed the title Fix discovery of direct dependencies Fix discovery of Go direct dependencies Sep 4, 2022
- Our current approach relied on a main.go file residing at the root of the repository which may not always be the case.

- Additionally calling go list {{.Deps}} module would not always give indented results.
@wescarr wescarr merged commit 4e72843 into main Sep 6, 2022
@wescarr wescarr deleted the fix-go-direct-deps branch September 6, 2022 20:11
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.

None yet

1 participant