Merge pull request 'fix: rename module path to gitea.hansenits.com.au/hits/ExploreDNS' (#24) from agent/development-manager/b41cb0eb into main
This commit was merged in pull request #24.
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.23'
|
go-version-file: 'go.mod'
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Vet
|
- name: Vet
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check internal package coverage
|
- name: Check internal package coverage
|
||||||
run: |
|
run: |
|
||||||
COVERAGE=$(GOTOOLCHAIN=local go tool cover -func=coverage.out | grep "^github.com/hits/ExploreDNS/internal" | awk '{print $3}' | sed 's/%//' | awk '{sum+=$1; count++} END {if(count>0) print sum/count; else print 0}')
|
COVERAGE=$(GOTOOLCHAIN=local go tool cover -func=coverage.out | grep "^gitea.hansenits.com.au/hits/ExploreDNS/internal" | awk '{print $3}' | sed 's/%//' | awk '{sum+=$1; count++} END {if(count>0) print sum/count; else print 0}')
|
||||||
echo "Average internal package coverage: ${COVERAGE}%"
|
echo "Average internal package coverage: ${COVERAGE}%"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ make build-all # produces both binaries
|
|||||||
### go install
|
### go install
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go install github.com/hits/ExploreDNS/cmd/exploredns@latest
|
go install gitea.hansenits.com.au/hits/ExploreDNS/cmd/exploredns@latest
|
||||||
go install github.com/hits/ExploreDNS/cmd/server@latest
|
go install gitea.hansenits.com.au/hits/ExploreDNS/cmd/server@latest
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/config"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/config"
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/output"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/output"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/web/api"
|
"gitea.hansenits.com.au/hits/ExploreDNS/web/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module github.com/hits/ExploreDNS
|
module gitea.hansenits.com.au/hits/ExploreDNS
|
||||||
|
|
||||||
go 1.24.0
|
go 1.24.0
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
dnsinternal "github.com/hits/ExploreDNS/internal/dns"
|
dnsinternal "gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
miekgdns "github.com/miekg/dns"
|
miekgdns "github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Format int
|
type Format int
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
miekgdns "github.com/miekg/dns"
|
miekgdns "github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
)
|
)
|
||||||
|
|
||||||
type jsonFormatter struct {
|
type jsonFormatter struct {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/fingerprint"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/fingerprint"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
)
|
)
|
||||||
|
|
||||||
func RunTraversal(ctx context.Context, traverser *traverse.Traverser, cfg *Config, formatter Formatter, domain string) ([]traverse.TraversalResult, error) {
|
func RunTraversal(ctx context.Context, traverser *traverse.Traverser, cfg *Config, formatter Formatter, domain string) ([]traverse.TraversalResult, error) {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
miekgdns "github.com/miekg/dns"
|
miekgdns "github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
miekgdns "github.com/miekg/dns"
|
miekgdns "github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
)
|
)
|
||||||
|
|
||||||
type textFormatter struct {
|
type textFormatter struct {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
miekgdns "github.com/miekg/dns"
|
miekgdns "github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
dnsinternal "github.com/hits/ExploreDNS/internal/dns"
|
dnsinternal "gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
miekgdns "github.com/miekg/dns"
|
miekgdns "github.com/miekg/dns"
|
||||||
"golang.org/x/net/idna"
|
"golang.org/x/net/idna"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
const TypeA = dns.TypeA
|
const TypeA = dns.TypeA
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package traverse
|
|||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
miekgdns "github.com/miekg/dns"
|
miekgdns "github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package traverse
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewStack(t *testing.T) {
|
func TestNewStack(t *testing.T) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/dns"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
miekgdns "github.com/miekg/dns"
|
miekgdns "github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -10,9 +10,9 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/internal/config"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/config"
|
||||||
idns "github.com/hits/ExploreDNS/internal/dns"
|
idns "gitea.hansenits.com.au/hits/ExploreDNS/internal/dns"
|
||||||
"github.com/hits/ExploreDNS/internal/traverse"
|
"gitea.hansenits.com.au/hits/ExploreDNS/internal/traverse"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Job status values.
|
// Job status values.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hits/ExploreDNS/web/api"
|
"gitea.hansenits.com.au/hits/ExploreDNS/web/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
// newTestServer starts a Server on a random port and returns it.
|
// newTestServer starts a Server on a random port and returns it.
|
||||||
|
|||||||
Reference in New Issue
Block a user