Skip to content

Commit 83e29ac

Browse files
committed
Fix: Use local module with replace directive
- Reverted module name back to 'goqueue' - Added 'replace goqueue => ./' in go.mod - Reverted all imports to use local module path - This prevents Go from trying to download internal packages from GitHub
1 parent 39367a5 commit 83e29ac

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

cmd/add.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/Irtesaam/goqueue/internal/storage"
8-
"github.com/Irtesaam/goqueue/internal/todo"
7+
"goqueue/internal/storage"
8+
"goqueue/internal/todo"
99

1010
"github.com/spf13/cobra"
1111
)

cmd/delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"os"
66
"strconv"
77

8-
"github.com/Irtesaam/goqueue/internal/storage"
9-
"github.com/Irtesaam/goqueue/internal/todo"
8+
"goqueue/internal/storage"
9+
"goqueue/internal/todo"
1010

1111
"github.com/spf13/cobra"
1212
)

cmd/edit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"os"
66
"strconv"
77

8-
"github.com/Irtesaam/goqueue/internal/storage"
9-
"github.com/Irtesaam/goqueue/internal/todo"
8+
"goqueue/internal/storage"
9+
"goqueue/internal/todo"
1010

1111
"github.com/spf13/cobra"
1212
)

cmd/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/Irtesaam/goqueue/internal/storage"
8-
"github.com/Irtesaam/goqueue/internal/todo"
7+
"goqueue/internal/storage"
8+
"goqueue/internal/todo"
99

1010
"github.com/spf13/cobra"
1111
)

cmd/toggle.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"os"
66
"strconv"
77

8-
"github.com/Irtesaam/goqueue/internal/storage"
9-
"github.com/Irtesaam/goqueue/internal/todo"
8+
"goqueue/internal/storage"
9+
"goqueue/internal/todo"
1010

1111
"github.com/spf13/cobra"
1212
)

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
module github.com/Irtesaam/goqueue
1+
module goqueue
22

33
go 1.24.7
44

5+
replace goqueue => ./
6+
57
require (
68
github.com/aquasecurity/table v1.11.0
79
github.com/spf13/cobra v1.10.1

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package main
22

3-
import "github.com/Irtesaam/goqueue/cmd"
3+
import "goqueue/cmd"
44

55
func main() {
66
cmd.Execute()

0 commit comments

Comments
 (0)