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

Separate CLI and example dependencies, support 'go install' #151

Merged
merged 4 commits into from
Sep 15, 2021

Conversation

JohnStarich
Copy link
Member

Adds sub Go modules to separate dependencies a bit between the gateway library, the CLI, and its examples.

I noticed the main package was located in ./cmd and had trouble installing via go install since it was being named cmd.
I went ahead and moved it into subdirectory with the desired name mentioned here: #146 (comment)
I also documented how to install it from this location.

One notable caveat: The new cmd/gateway go.mod file points to a specific version of the gateway library, which could become outdated. I considered adding a replace pointing to a parent directory, but I don't think this supports go install <full pkg name>.

Fixes #149

@JohnStarich JohnStarich marked this pull request as ready for review September 3, 2021 02:30
@AlecAivazis
Copy link
Member

Sorry i haven't found the time to test this out yet. Will try to give it a shot some time this week

Copy link
Member

@AlecAivazis AlecAivazis left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks @JohnStarich!

@AlecAivazis AlecAivazis merged commit cdcd3b1 into nautilus:master Sep 15, 2021
@JohnStarich JohnStarich deleted the feature/multi-module-deps branch September 15, 2021 06:36
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.

CLI dependencies pulled in alongside library deps
2 participants