Tags: equinix/metal-cli
Tags
chore: remove trailing slash from API base URL (#464) The `packngo` SDK assumed that the base API URL did not end with a slash, but `equinix-sdk-go` assumes that it does (since it's generated from an OpenAPI spec, all API paths in `equinix-sdk-go` start with a slash). A trailing slash on the base API URL doesn't cause problems for `equinix-sdk-go`, but it can cause confusion when triaging issues. This removes the trailing slash from the 2 places where we are configuring the base API URL. We can do this safely now because we no longer use `packngo`. Alternatively, we could make the base API URL configuration optional; the API URL configured here is identical to [the default used by the `metalv1` package in `equinix-sdk-go`](https://github.com/equinix/equinix-sdk-go/blob/main/services/metalv1/configuration.go#L97), so we only really need to change the API URL for tests that use a mock API. That change would be more extensive so I opted for the smallest change instead.
chore: convert to push-button release workflow (#471) This updates the existing release workflow so that it is run by pushing a button in the GitHub UI rather than creating a tag locally and pushing that tag up to GitHub. The push-button workflow looks up the previous release and uses Conventional Commit tags to determine the correct next version for the new release. As before, it uses GoReleaser to build the CLI and upload the binaries to the GitHub release. I have confirmed on my fork that this works up through the GoReleaser step. Closes #364
chore(deps): update golangci/golangci-lint-action action to v6 (#459) [](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [golangci/golangci-lint-action](https://togithub.com/golangci/golangci-lint-action) | action | major | `v3` -> `v6` | --- ### Release Notes <details> <summary>golangci/golangci-lint-action (golangci/golangci-lint-action)</summary> ### [`v6`](https://togithub.com/golangci/golangci-lint-action/compare/v5...v6) [Compare Source](https://togithub.com/golangci/golangci-lint-action/compare/v5...v6) ### [`v5`](https://togithub.com/golangci/golangci-lint-action/compare/v4...v5) [Compare Source](https://togithub.com/golangci/golangci-lint-action/compare/v4...v5) ### [`v4`](https://togithub.com/golangci/golangci-lint-action/compare/v3...v4) [Compare Source](https://togithub.com/golangci/golangci-lint-action/compare/v3...v4) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/equinix/metal-cli). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
fix: handle optional flags correctly in VRF route update (#441) The test for the VRF route update subcommand was explicitly skipped. I added a helper function to wait for the VRF route to be ready before testing the update subcommand, but when the test was enabled it failed because the subcommand was not capable of updating tags without updating all other VRF route properties. In addition to enabling the test for the VRF route update subcommand, this updates the subcommand itself so that it only updates a VRF route property if the user set the corresponding CLI flag. Part of #414
chore: Migrate Two FA from packngo to equinix-sdk-go client (#353) Issue Task as part of migrating metal-cli from packngo to metal-go client, added the support of Two Fa to use metal-go Fixes: #333 Discussion: As of metal-go `0.22.2` there are 2 issues which needs api support - Accepting `otp code` in the input for `Enable and Disable 2FA` is not supported from metal-go - Receiving an `otp` on two fa registered `app` is also not supported --------- Signed-off-by: Ayush Rangwala <ayush.rangwala@gmail.com> Co-authored-by: Charles Treatman <ctreatman@equinix.com>
chore(deps): update actions/setup-go action to v5 (#401) [](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-go](https://togithub.com/actions/setup-go) | action | major | `v4` -> `v5` | --- ### Release Notes <details> <summary>actions/setup-go (actions/setup-go)</summary> ### [`v5`](https://togithub.com/actions/setup-go/compare/v4...v5) [Compare Source](https://togithub.com/actions/setup-go/compare/v4...v5) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/equinix/metal-cli). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
PreviousNext