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

Dependency loop with juju/utils #78

Open
gibmat opened this issue Nov 5, 2021 · 0 comments
Open

Dependency loop with juju/utils #78

gibmat opened this issue Nov 5, 2021 · 0 comments

Comments

@gibmat
Copy link

gibmat commented Nov 5, 2021

This library depends on some helper methods from juju/utils, but juju/utils in turn depends on juju/cmd. This forms a dependency loop.

I think the cleanest approach would be to copy over the helper code from juju/utils to break the loop. The methods used from juju/utils are:

  • utils.NormalizePath()
  • utils.Home()

This was noticed while reviewing dependencies needed to cleanly package LXD for Debian, where each library that LXD depends on must be able to build on its own with a clean set of dependencies.

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

No branches or pull requests

1 participant