Skip to content

Commit f07ee71

Browse files
committed
chore(api): update github api endpoint
1 parent bbcc674 commit f07ee71

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

cmd/inst/main.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313

1414
"github.com/AlecAivazis/survey/v2/terminal"
1515
"github.com/cli/safeexec"
16-
"github.com/dotenv-org/godotenvvault"
1716
"github.com/mattn/go-colorable"
1817
"github.com/mgutz/ansi"
1918
"github.com/spf13/cobra"
@@ -47,11 +46,6 @@ func main() {
4746
}
4847

4948
func mainRun() exitCode {
50-
// optionally load .env in dev mode
51-
if build.Version == "" {
52-
_ = godotenvvault.Load()
53-
}
54-
5549
buildDate := build.Date
5650
buildVersion := build.Version
5751

internal/update/update.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ func CheckForUpdate(client *api.Client, stateFilePath, repo, currentVersion stri
5555

5656
func getLatestReleaseInfo(client *api.Client, repo string) (*ReleaseInfo, error) {
5757
var latestRelease ReleaseInfo
58-
err := client.REST("github.com", "GET", fmt.Sprintf("repos/%s/releases/latest", repo), nil, &latestRelease)
58+
err := client.REST("api.github.com", "GET", fmt.Sprintf("repos/%s/releases/latest", repo), nil, &latestRelease)
5959
if err != nil {
6060
return nil, err
6161
}
62-
6362
return &latestRelease, nil
6463
}
6564

0 commit comments

Comments
 (0)