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

Switch to Go modules #14

Merged
merged 2 commits into from
Feb 26, 2021
Merged

Conversation

antoninbas
Copy link
Contributor

  • Switch to Go modules and remove vendoring
  • Use different fork of go-powershell: replace the current go-powershell
    dependency with https://github.com/antoninbas/go-powershell. This fork
    converts the project to Go modules and removes the dependency on juju
    packages (which are distributed under an LGPL v3 license, making usage
    in commercial products difficult)
  • Enable CI: run unit tests using Github workflows

Fixes #13

@antoninbas
Copy link
Contributor Author

@rakelkar could you enable Github actions in this repo so the tests can run?

@rakelkar
Copy link
Owner

Hey Antonio - thanks for your PR - quick qn, did you try to get your changes in go-powershell updated to benmoss repo?

@antoninbas
Copy link
Contributor Author

@rakelkar I wasn't planning on doing it, since benmoss/go-powershell is already a fork and the original project seems to be unmaintained. Is that an issue for you? If yes, I can try to reach out to benmoss.

@rakelkar
Copy link
Owner

rakelkar commented Feb 4, 2021

Would be great if you can try to get an okay from benmoss him as a curtsy :)

@rakelkar
Copy link
Owner

rakelkar commented Feb 4, 2021

have enabled actions btw!

@antoninbas
Copy link
Contributor Author

I have opened the PR: benmoss/go-powershell#1

If it's accepted, I'll update this PR. Looks like there are some unit tests failures, so I'll address them as well at that time.

@antoninbas
Copy link
Contributor Author

I got my answer: benmoss/go-powershell#1 (comment). He recommends switching to a different fork.

* Switch to Go modules and remove vendoring
* Use different fork of go-powershell: replace the current go-powershell
  dependency with https://github.com/antoninbas/go-powershell. This fork
  converts the project to Go modules and removes the dependency on juju
  packages (which are distributed under an LGPL v3 license, making usage
  in commercial products difficult)
* Enable CI: run unit tests using Github workflows

Fixes rakelkar#13
@antoninbas antoninbas force-pushed the switch-to-go-modules branch 3 times, most recently from 24ebd0a to bea4a49 Compare February 5, 2021 18:34
@antoninbas antoninbas force-pushed the switch-to-go-modules branch from bea4a49 to 423d24b Compare February 5, 2021 18:36
@antoninbas
Copy link
Contributor Author

@rakelkar I rebased the PR and fix the test failures.

By the way, do you have any insight about the difference between this package and the upstream K8s one: https://github.com/kubernetes/kubernetes/tree/master/pkg/util/netsh?

@antoninbas
Copy link
Contributor Author

@rakelkar I rebased the PR and fix the test failures.

By the way, do you have any insight about the difference between this package and the upstream K8s one: https://github.com/kubernetes/kubernetes/tree/master/pkg/util/netsh?

Actually there is no equivalent to https://github.com/rakelkar/gonetsh/tree/master/netroute in upstream K8s

@antoninbas
Copy link
Contributor Author

@rakelkar friendly ping for this

@rakelkar rakelkar merged commit dfffed1 into rakelkar:master Feb 26, 2021
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.

Is the project still maintained?
2 participants