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

NET-642 #621

Merged
merged 4 commits into from
Nov 6, 2023
Merged

NET-642 #621

merged 4 commits into from
Nov 6, 2023

Conversation

uGiFarukh
Copy link
Contributor

@uGiFarukh uGiFarukh commented Nov 3, 2023

Describe your changes

  • Fixed windows auto upgrade issue.
  • Fixed netclient version selector issue with netclient use command.

Provide Issue ticket number if applicable/not in title

Provide link to Netmaker PR if required

Provide testing steps

Checklist before requesting a review

  • My changes affect only 10 files or less.
  • I have performed a self-review of my code and tested it.
  • If it is a new feature, I have added thorough tests, my code is <= 1450 lines.
  • If it is a bugfix, my code is <= 200 lines.
  • My functions are <= 80 lines.
  • I have had my code reviewed by a peer.
  • My unit tests pass locally.
  • Netclient & Netmaker are awesome.

* Fixed windows auto upgrade issue.
* Fixed netclient version selector issue with netclient use command.
@uGiFarukh uGiFarukh added bug Something isn't working Fixed Fixed labels Nov 3, 2023
@uGiFarukh uGiFarukh self-assigned this Nov 3, 2023
* Unused variables and types cleanup on types.go
* hardcoded url for windows binary changed
@@ -102,6 +100,19 @@ func versionLessThan(v1, v2 string) (bool, error) {

// UseVersion switches the current netclient version to the one specified if available in the github releases page
func UseVersion(version string, rebootDaemon bool) error {
// Use Windows specific version change process
if runtime.GOOS == "windows" {
windowsBinaryURL := fmt.Sprintf("https://github.com/gravitl/netclient/releases/download/%s/netclient-%s-%s", version, runtime.GOOS, runtime.GOARCH)
Copy link
Member

Choose a reason for hiding this comment

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

missing .exe in the filename

* url typo fix
@abhishek9686 abhishek9686 merged commit f5b9b27 into develop Nov 6, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants