Skip to content

Commit 4f9bf6b

Browse files
authored
fix imports (#26)
- Expanded support for Go versions, now including `1.22.x`. - Updated package import paths for `shellescape` to reflect new hosting, ensuring compatibility. - Fixes #25
2 parents 312088d + bb4dcb3 commit 4f9bf6b

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
go-version: [1.20.x, 1.21.x]
13+
go-version: [1.20.x, 1.21.x, 1.22.x]
1414
os: [ubuntu-latest, macos-latest]
1515
runs-on: ${{ matrix.os }}
1616
steps:

cmd/escargs/escargs.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"log"
1212
"os"
1313

14-
"github.com/alessio/shellescape"
14+
"al.essio.dev/pkg/shellescape"
1515
)
1616

1717
var (
@@ -113,5 +113,5 @@ Options:`
113113

114114
func outputVersion() {
115115
fmt.Fprintf(os.Stderr, "escargs version %s\n", version)
116-
fmt.Fprintln(os.Stderr, "Copyright (C) 2020-2023 Alessio Treglia <[email protected]>")
116+
fmt.Fprintln(os.Stderr, "Copyright (C) 2020-2024 Alessio Treglia <[email protected]>")
117117
}

example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/alessio/shellescape"
7+
"al.essio.dev/pkg/shellescape"
88
"github.com/google/shlex"
99
)
1010

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/alessio/shellescape
1+
module al.essio.dev/pkg/shellescape
22

33
go 1.18
44

shellescape.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ POSIX shells.
66
The original Python package which this work was inspired by can be found
77
at https://pypi.python.org/pypi/shellescape.
88
*/
9-
package shellescape // "import gopkg.in/alessio/shellescape.v1"
9+
package shellescape // "import al.essio.dev/pkg/shellescape"
1010

1111
/*
1212
The functionality provided by shellescape.Quote could be helpful

shellescape_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package shellescape_test
33
import (
44
"testing"
55

6-
"github.com/alessio/shellescape"
6+
"al.essio.dev/pkg/shellescape"
77
)
88

99
func assertEqual(t *testing.T, s, expected string) {

0 commit comments

Comments
 (0)