Move the module to git.gec.im/GRMrGecko/go-firewall
A temporary holding path until the library is ready to release. The cmd module, its imports and the README referred to the library as github.com/grmrgecko/firewall while the root go.mod declared it as github.com/grmrgecko/go-firewall, so its require/replace pair never named the module it was replacing. Point all of them at the new path, which makes them agree for the first time. The go-firewalld dependency shares the old prefix and is unrelated; it is left alone.
This commit is contained in:
parent
060d667e93
commit
b4e54a66b6
13 changed files with 19 additions and 19 deletions
|
|
@ -1,16 +1,16 @@
|
||||||
# go-firewall
|
# go-firewall
|
||||||
|
|
||||||
[](https://pkg.go.dev/github.com/grmrgecko/firewall)
|
[](https://pkg.go.dev/git.gec.im/GRMrGecko/go-firewall)
|
||||||
|
|
||||||
A Go module that presents a single, uniform interface over the many
|
A Go module that presents a single, uniform interface over the many
|
||||||
firewall managers found across operating systems. You describe rules with one
|
firewall managers found across operating systems. You describe rules with one
|
||||||
platform‑agnostic `Rule` struct and the module translates them to whatever
|
platform‑agnostic `Rule` struct and the module translates them to whatever
|
||||||
backend is actually running on the host.
|
backend is actually running on the host.
|
||||||
|
|
||||||
Reference documentation: <https://pkg.go.dev/github.com/grmrgecko/firewall>
|
Reference documentation: <https://pkg.go.dev/git.gec.im/GRMrGecko/go-firewall>
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "github.com/grmrgecko/firewall"
|
import "git.gec.im/GRMrGecko/go-firewall"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Supported backends
|
## Supported backends
|
||||||
|
|
@ -31,7 +31,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/grmrgecko/firewall"
|
"git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This file holds the backup and restore subcommands. A backup captures the
|
// This file holds the backup and restore subcommands. A backup captures the
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// These tests cover the CLI's pure logic — flag parsing, rate/ICMP token
|
// These tests cover the CLI's pure logic — flag parsing, rate/ICMP token
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
module github.com/grmrgecko/firewall/cmd/go-firewall
|
module git.gec.im/GRMrGecko/go-firewall/cmd/go-firewall
|
||||||
|
|
||||||
go 1.26.4
|
go 1.26.4
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
git.gec.im/GRMrGecko/go-firewall v0.0.0-00010101000000-000000000000
|
||||||
github.com/alecthomas/kong v1.15.0
|
github.com/alecthomas/kong v1.15.0
|
||||||
github.com/grmrgecko/firewall v0.0.0-00010101000000-000000000000
|
|
||||||
github.com/willabides/kongplete v0.4.0
|
github.com/willabides/kongplete v0.4.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ require (
|
||||||
golang.org/x/sys v0.40.0 // indirect
|
golang.org/x/sys v0.40.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/grmrgecko/firewall => ../..
|
replace git.gec.im/GRMrGecko/go-firewall => ../..
|
||||||
|
|
||||||
// Mirrors the library's own replace: the old coreos/go-systemd import path is
|
// Mirrors the library's own replace: the old coreos/go-systemd import path is
|
||||||
// redirected to the maintained v22 module (the v0 release does not compile
|
// redirected to the maintained v22 module (the v0 release does not compile
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This file holds the read-only/info subcommands: status (backend + caps),
|
// This file holds the read-only/info subcommands: status (backend + caps),
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// Command go-firewall is a unified firewall management CLI built on the
|
// Command go-firewall is a unified firewall management CLI built on the
|
||||||
// github.com/grmrgecko/firewall library. It auto-detects the host's active
|
// git.gec.im/GRMrGecko/go-firewall library. It auto-detects the host's active
|
||||||
// firewall backend and exposes a single command set across every backend the
|
// firewall backend and exposes a single command set across every backend the
|
||||||
// library supports (firewalld, ufw, CSF, APF, iptables, nftables, pf, WFP).
|
// library supports (firewalld, ufw, CSF, APF, iptables, nftables, pf, WFP).
|
||||||
//
|
//
|
||||||
|
|
@ -19,7 +19,7 @@ import (
|
||||||
"github.com/alecthomas/kong"
|
"github.com/alecthomas/kong"
|
||||||
"github.com/willabides/kongplete"
|
"github.com/willabides/kongplete"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// managerDetectTimeout bounds backend detection so a hung probe (pfctl, D-Bus)
|
// managerDetectTimeout bounds backend detection so a hung probe (pfctl, D-Bus)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This file holds the NAT command group: list, add, remove. NAT rules are
|
// This file holds the NAT command group: list, add, remove. NAT rules are
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This file holds the human-readable renderers for the library's data types.
|
// This file holds the human-readable renderers for the library's data types.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This file holds a small parser the firewall library keeps private
|
// This file holds a small parser the firewall library keeps private
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This file holds the default-policy command group: get and set. A default
|
// This file holds the default-policy command group: get and set. A default
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This file holds the rule command group: list, add, remove, insert, move.
|
// This file holds the rule command group: list, add, remove, insert, move.
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
fw "github.com/grmrgecko/firewall"
|
fw "git.gec.im/GRMrGecko/go-firewall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This file holds the address-set command group: list, create, remove,
|
// This file holds the address-set command group: list, create, remove,
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/grmrgecko/go-firewall
|
module git.gec.im/GRMrGecko/go-firewall
|
||||||
|
|
||||||
go 1.26.4
|
go 1.26.4
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue