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:
James Coleman 2026-07-09 21:32:10 -05:00
parent 060d667e93
commit b4e54a66b6
13 changed files with 19 additions and 19 deletions

View file

@ -1,16 +1,16 @@
# go-firewall
[![Go Reference](https://pkg.go.dev/badge/github.com/grmrgecko/firewall.svg)](https://pkg.go.dev/github.com/grmrgecko/firewall)
[![Go Reference](https://pkg.go.dev/badge/git.gec.im/GRMrGecko/go-firewall.svg)](https://pkg.go.dev/git.gec.im/GRMrGecko/go-firewall)
A Go module that presents a single, uniform interface over the many
firewall managers found across operating systems. You describe rules with one
platformagnostic `Rule` struct and the module translates them to whatever
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
import "github.com/grmrgecko/firewall"
import "git.gec.im/GRMrGecko/go-firewall"
```
## Supported backends
@ -31,7 +31,7 @@ import (
"context"
"log"
"github.com/grmrgecko/firewall"
"git.gec.im/GRMrGecko/go-firewall"
)
func main() {

View file

@ -5,7 +5,7 @@ import (
"fmt"
"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

View file

@ -4,7 +4,7 @@ import (
"strings"
"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

View file

@ -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
require (
git.gec.im/GRMrGecko/go-firewall v0.0.0-00010101000000-000000000000
github.com/alecthomas/kong v1.15.0
github.com/grmrgecko/firewall v0.0.0-00010101000000-000000000000
github.com/willabides/kongplete v0.4.0
)
@ -26,7 +26,7 @@ require (
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
// redirected to the maintained v22 module (the v0 release does not compile

View file

@ -8,7 +8,7 @@ import (
"reflect"
"sort"
fw "github.com/grmrgecko/firewall"
fw "git.gec.im/GRMrGecko/go-firewall"
)
// This file holds the read-only/info subcommands: status (backend + caps),

View file

@ -1,5 +1,5 @@
// 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
// library supports (firewalld, ufw, CSF, APF, iptables, nftables, pf, WFP).
//
@ -19,7 +19,7 @@ import (
"github.com/alecthomas/kong"
"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)

View file

@ -5,7 +5,7 @@ import (
"fmt"
"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

View file

@ -6,7 +6,7 @@ import (
"strconv"
"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.

View file

@ -5,7 +5,7 @@ import (
"strconv"
"strings"
fw "github.com/grmrgecko/firewall"
fw "git.gec.im/GRMrGecko/go-firewall"
)
// This file holds a small parser the firewall library keeps private

View file

@ -4,7 +4,7 @@ import (
"context"
"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

View file

@ -5,7 +5,7 @@ import (
"fmt"
"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.

View file

@ -5,7 +5,7 @@ import (
"fmt"
"os"
fw "github.com/grmrgecko/firewall"
fw "git.gec.im/GRMrGecko/go-firewall"
)
// This file holds the address-set command group: list, create, remove,

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/grmrgecko/go-firewall
module git.gec.im/GRMrGecko/go-firewall
go 1.26.4