refactor: move pkg/scan to internal/scan

This commit is contained in:
Celeste Hickenlooper
2026-01-03 03:10:19 -08:00
parent 3e67164da2
commit f4c4d79add
35 changed files with 11 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ import (
"github.com/dropalldatabases/sif/internal/config"
// Register framework detectors
_ "github.com/dropalldatabases/sif/pkg/scan/frameworks/detectors"
_ "github.com/dropalldatabases/sif/internal/scan/frameworks/detectors"
)
func main() {

View File

@@ -18,9 +18,9 @@ import (
"testing"
"time"
"github.com/dropalldatabases/sif/pkg/scan/frameworks"
"github.com/dropalldatabases/sif/internal/scan/frameworks"
// Import detectors to register them via init()
_ "github.com/dropalldatabases/sif/pkg/scan/frameworks/detectors"
_ "github.com/dropalldatabases/sif/internal/scan/frameworks/detectors"
)
func TestExtractVersion_Laravel(t *testing.T) {

View File

@@ -11,7 +11,7 @@ import (
"math"
"net/http"
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
)
func init() {

View File

@@ -10,7 +10,7 @@ package detectors
import (
"net/http"
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
)
func init() {

View File

@@ -10,7 +10,7 @@ package detectors
import (
"net/http"
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
)
func init() {

View File

@@ -10,7 +10,7 @@ package detectors
import (
"net/http"
fw "github.com/dropalldatabases/sif/pkg/scan/frameworks"
fw "github.com/dropalldatabases/sif/internal/scan/frameworks"
)
func init() {

View File

@@ -23,7 +23,7 @@ import (
"github.com/antchfx/htmlquery"
"github.com/charmbracelet/log"
"github.com/dropalldatabases/sif/pkg/scan/js/frameworks"
"github.com/dropalldatabases/sif/internal/scan/js/frameworks"
urlutil "github.com/projectdiscovery/utils/url"
)

6
sif.go
View File

@@ -27,10 +27,10 @@ import (
"github.com/dropalldatabases/sif/internal/config"
"github.com/dropalldatabases/sif/internal/logger"
"github.com/dropalldatabases/sif/internal/modules"
"github.com/dropalldatabases/sif/internal/scan"
"github.com/dropalldatabases/sif/internal/scan/frameworks"
jsscan "github.com/dropalldatabases/sif/internal/scan/js"
"github.com/dropalldatabases/sif/internal/styles"
"github.com/dropalldatabases/sif/pkg/scan"
"github.com/dropalldatabases/sif/pkg/scan/frameworks"
jsscan "github.com/dropalldatabases/sif/pkg/scan/js"
)
// App represents the main application structure for sif.