Skip to content

Commit

Permalink
fix: update import paths for the Go code
Browse files Browse the repository at this point in the history
docs: update readme
  • Loading branch information
Nicconike committed Oct 1, 2024
1 parent 4857bae commit 49eb11f
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.x"
go-version: "1.23.x"

- name: Install Dependencies
run: go mod tidy
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Publish Packages

on:
push:
paths:
- '.github/workflows/docker.yml'
tags:
- 'v*.*.*'

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ go get -u github.com/Nicconike/AutomatedGo

To install **AutomatedGo** as a Go binary, use the following command:
```sh
go install github.com/Nicconike/AutomatedGo/cmd/automatedgo@v2.0.1
go install github.com/Nicconike/AutomatedGo/v2/cmd/automatedgo@v2.0.3
```

## Usage
Expand All @@ -49,7 +49,7 @@ This will check the specified file for the current Go version, compare it with t
> [!NOTE]
> If you don't specify the `os` and `arch` type, the tool will download the latest version for your current operating system and architecture.
>
> Minimum required Go version: 1.17
> Minimum required Go version: 1.18
### Command-line Options

Expand All @@ -74,7 +74,7 @@ This will check the specified file for the current Go version, compare it with t

3. Specify version directly:
```sh
automatedgo -v 1.17
automatedgo -v 1.18
```
![Direct Example](https://github.com/Nicconike/AutomatedGo/blob/master/assets/direct_example.png)

Expand Down
2 changes: 1 addition & 1 deletion cmd/automatedgo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/Nicconike/AutomatedGo/pkg"
"github.com/Nicconike/AutomatedGo/v2/pkg"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Nicconike/AutomatedGo
module github.com/Nicconike/AutomatedGo/v2

go 1.17
go 1.18

require (
github.com/schollz/progressbar/v3 v3.16.0
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http/httptest"
"testing"

"github.com/Nicconike/AutomatedGo/pkg"
"github.com/Nicconike/AutomatedGo/v2/pkg"
)

var originalURL string
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/checksum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"testing"

"github.com/Nicconike/AutomatedGo/pkg"
"github.com/Nicconike/AutomatedGo/v2/pkg"
)

func createServerFunc(filename, sha256 string) func(http.ResponseWriter, *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/downloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"runtime"
"testing"

"github.com/Nicconike/AutomatedGo/pkg"
"github.com/Nicconike/AutomatedGo/v2/pkg"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/extractor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/Nicconike/AutomatedGo/pkg"
"github.com/Nicconike/AutomatedGo/v2/pkg"
)

func runGetCurrentVersionTest(t *testing.T, filePath, directVersion, expectedResult string, expectError bool) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"testing"

"github.com/Nicconike/AutomatedGo/pkg"
"github.com/Nicconike/AutomatedGo/v2/pkg"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tests
import (
"testing"

"github.com/Nicconike/AutomatedGo/pkg"
"github.com/Nicconike/AutomatedGo/v2/pkg"
)

func TestIsNewer(t *testing.T) {
Expand Down

0 comments on commit 49eb11f

Please sign in to comment.