Skip to content

Commit

Permalink
Fix spelling (bazelbuild#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn authored Sep 18, 2022
1 parent 7fe393e commit 9c6ebce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bazelisk_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func TestResolveLatestVersion_GitHubIsDown(t *testing.T) {
if err == nil {
t.Fatal("Expected resolveLatestVersion() to fail.")
}
expectedPrefix := "unable to determine latest version: unable to dermine 'some_fork' releases: could not download list of Bazel releases from github.com/some_fork"
expectedPrefix := "unable to determine latest version: unable to determine 'some_fork' releases: could not download list of Bazel releases from github.com/some_fork"
if !strings.HasPrefix(err.Error(), expectedPrefix) {
t.Fatalf("Expected error message that starts with %q, but got '%v'", expectedPrefix, err)
}
Expand Down
4 changes: 2 additions & 2 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func RunBazeliskWithArgsFunc(argsFunc ArgsFunc, repos *Repositories) (int, error
baseDirectory := filepath.Join(bazeliskHome, "local")
bazelPath, err = linkLocalBazel(baseDirectory, bazelPath)
if err != nil {
return -1, fmt.Errorf("cound not link local Bazel: %v", err)
return -1, fmt.Errorf("could not link local Bazel: %v", err)
}
}

Expand Down Expand Up @@ -403,7 +403,7 @@ func linkLocalBazel(baseDirectory string, bazelPath string) (string, error) {
if err != nil {
err = copyFile(bazelPath, destinationPath, 0755)
if err != nil {
return "", fmt.Errorf("cound not copy file from %s to %s: %v", bazelPath, destinationPath, err)
return "", fmt.Errorf("could not copy file from %s to %s: %v", bazelPath, destinationPath, err)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion platforms/platforms.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package platforms determins file names and extensions based on the current operating system.
// Package platforms determines file names and extensions based on the current operating system.
package platforms

import (
Expand Down
2 changes: 1 addition & 1 deletion repositories/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (gh *GitHubRepo) getFilteredVersions(bazeliskHome, bazelFork string, wantPr
url := fmt.Sprintf("https://api.github.com/repos/%s/bazel/releases", bazelFork)
releasesJSON, err := httputil.MaybeDownload(bazeliskHome, url, bazelFork+"-releases.json", "list of Bazel releases from github.com/"+bazelFork, fmt.Sprintf("token %s", gh.token), merger)
if err != nil {
return []string{}, fmt.Errorf("unable to dermine '%s' releases: %v", bazelFork, err)
return []string{}, fmt.Errorf("unable to determine '%s' releases: %v", bazelFork, err)
}

if len(releases) == 0 {
Expand Down

0 comments on commit 9c6ebce

Please sign in to comment.