diff --git a/.goreleaser.yml b/.goreleaser.yml index 56b8218a..b1eb345e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,6 @@ builds: - binary: nuclei - main: cmd/nuclei/main.go + main: v2/cmd/nuclei/main.go goos: - linux - windows diff --git a/Dockerfile b/Dockerfile index 244dd803..7ea72144 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,14 +6,14 @@ COPY ./go.mod . RUN go mod download COPY . . -RUN cd ./cmd/nuclei && go build -o nuclei . +RUN cd ./v2/cmd/nuclei && go build -o nuclei . FROM alpine RUN mkdir /app RUN adduser -S -D -H -h /app appuser USER appuser -COPY --from=builder /app/cmd/nuclei/nuclei /app +COPY --from=builder /app/v2/cmd/nuclei/nuclei /app WORKDIR /app CMD ["./nuclei"] diff --git a/cmd/nuclei/main.go b/v2/cmd/nuclei/main.go similarity index 100% rename from cmd/nuclei/main.go rename to v2/cmd/nuclei/main.go diff --git a/go.mod b/v2/go.mod similarity index 72% rename from go.mod rename to v2/go.mod index 527b0980..4f300b45 100644 --- a/go.mod +++ b/v2/go.mod @@ -5,18 +5,17 @@ go 1.14 require ( github.com/Knetic/govaluate v3.0.0+incompatible github.com/blang/semver v3.5.1+incompatible - github.com/d5/tengo/v2 v2.6.0 + github.com/d5/tengo/v2 v2.6.2 github.com/google/go-github/v32 v32.1.0 github.com/json-iterator/go v1.1.10 - github.com/karrick/godirwalk v1.15.6 + github.com/karrick/godirwalk v1.16.1 github.com/logrusorgru/aurora v2.0.3+incompatible github.com/miekg/dns v1.1.31 github.com/pkg/errors v0.9.1 github.com/projectdiscovery/gologger v1.0.1 github.com/projectdiscovery/retryabledns v1.0.4 github.com/projectdiscovery/retryablehttp-go v1.0.1 - github.com/stretchr/testify v1.5.1 - github.com/vbauerster/mpb/v5 v5.2.4 - golang.org/x/net v0.0.0-20200707034311-ab3426394381 + github.com/vbauerster/mpb/v5 v5.3.0 + golang.org/x/net v0.0.0-20200923182212-328152dc79b1 gopkg.in/yaml.v2 v2.3.0 ) diff --git a/go.sum b/v2/go.sum similarity index 83% rename from go.sum rename to v2/go.sum index acc2417d..b87ba34e 100644 --- a/go.sum +++ b/v2/go.sum @@ -1,17 +1,20 @@ +github.com/Knetic/govaluate v1.5.0 h1:L4MyqdJSld9xr2eZcZHCWLfeIX2SBjqrwIKG1pcm/+4= github.com/Knetic/govaluate v3.0.0+incompatible h1:7o6+MAPhYTCF0+fdvoz1xDedhRb4f6s9Tn1Tt7/WTEg= github.com/Knetic/govaluate v3.0.0+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/VividCortex/ewma v1.1.1 h1:MnEK4VOv6n0RSY4vtRe3h11qjxL3+t0B8yOL8iMXdcM= github.com/VividCortex/ewma v1.1.1/go.mod h1:2Tkkvm3sRDVXaiyucHiACn4cqf7DpdyLvmxzcbUokwA= github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8= github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo= +github.com/blang/semver v1.1.0 h1:ol1rO7QQB5uy7umSNV7VAmLugfLRD+17sYJujRNYPhg= github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/d5/tengo/v2 v2.6.0 h1:D0cJtpiBzaLJ/Smv6nnUc/LIfO46oKwDx85NZtIRNRI= -github.com/d5/tengo/v2 v2.6.0/go.mod h1:XRGjEs5I9jYIKTxly6HCF8oiiilk5E/RYXOZ5b0DZC8= +github.com/d5/tengo v1.24.8 h1:PRJ+NWt7ae/9sSbIfThOBTkPSvNV+dwYoBAvwfNgNJY= +github.com/d5/tengo/v2 v2.6.2 h1:AnPhA/Y5qrNLb5QSWHU9uXq25T3QTTdd2waTgsAHMdc= +github.com/d5/tengo/v2 v2.6.2/go.mod h1:XRGjEs5I9jYIKTxly6HCF8oiiilk5E/RYXOZ5b0DZC8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY= github.com/google/go-github/v32 v32.1.0 h1:GWkQOdXqviCPx7Q7Fj+KyPoGm4SwHRh8rheoPhd27II= github.com/google/go-github/v32 v32.1.0/go.mod h1:rIEpZD9CTDQwDK9GDrtMTycQNA4JU3qBsCizh3q2WCI= github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= @@ -19,8 +22,8 @@ github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/karrick/godirwalk v1.15.6 h1:Yf2mmR8TJy+8Fa0SuQVto5SYap6IF7lNVX4Jdl8G1qA= -github.com/karrick/godirwalk v1.15.6/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= +github.com/karrick/godirwalk v1.16.1 h1:DynhcF+bztK8gooS0+NDJFrdNZjJ3gzVzC545UNA9iw= +github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8= github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= @@ -35,7 +38,6 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLD github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/projectdiscovery/gologger v1.0.1 h1:FzoYQZnxz9DCvSi/eg5A6+ET4CQ0CDUs27l6Exr8zMQ= github.com/projectdiscovery/gologger v1.0.1/go.mod h1:Ok+axMqK53bWNwDSU1nTNwITLYMXMdZtRc8/y1c7sWE= @@ -45,10 +47,11 @@ github.com/projectdiscovery/retryablehttp-go v1.0.1 h1:V7wUvsZNq1Rcz7+IlcyoyQlNw github.com/projectdiscovery/retryablehttp-go v1.0.1/go.mod h1:SrN6iLZilNG1X4neq1D+SBxoqfAF4nyzvmevkTkWsek= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/vbauerster/mpb/v5 v5.2.4 h1:PLP8vv75RcEgxGoJVtKaRD2FHSxEmIV/u4ZuOrfO8Qg= -github.com/vbauerster/mpb/v5 v5.2.4/go.mod h1:K4iCHQp5sWnmAgEn+uW1sAxSilctb4JPAGXx49jV+Aw= +github.com/vbauerster/mpb v1.1.3 h1:IRgic8VFaURXkW0VxDLkNOiNaAgtw0okB2YIaVvJDI4= +github.com/vbauerster/mpb v3.4.0+incompatible h1:mfiiYw87ARaeRW6x5gWwYRUawxaW1tLAD8IceomUCNw= +github.com/vbauerster/mpb/v5 v5.3.0 h1:vgrEJjUzHaSZKDRRxul5Oh4C72Yy/5VEMb0em+9M0mQ= +github.com/vbauerster/mpb/v5 v5.3.0/go.mod h1:4yTkvAb8Cm4eylAp6t0JRq6pXDkFJ4krUlDqWYkakAs= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= @@ -58,22 +61,20 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200923182212-328152dc79b1 h1:Iu68XRPd67wN4aRGGWwwq6bZo/25jR6uu52l/j2KkUE= +golang.org/x/net v0.0.0-20200923182212-328152dc79b1/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae h1:Ih9Yo4hSPImZOpfGuA4bR/ORKTAbhZo2AbWNRCnevdo= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed h1:WBkVNH1zd9jg/dK4HCM4lNANnmd12EHC9z+LmcCG4ns= +golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= diff --git a/internal/bufwriter/bufwriter.go b/v2/internal/bufwriter/bufwriter.go similarity index 100% rename from internal/bufwriter/bufwriter.go rename to v2/internal/bufwriter/bufwriter.go diff --git a/internal/progress/doc.go b/v2/internal/progress/doc.go similarity index 100% rename from internal/progress/doc.go rename to v2/internal/progress/doc.go diff --git a/internal/progress/progress.go b/v2/internal/progress/progress.go similarity index 100% rename from internal/progress/progress.go rename to v2/internal/progress/progress.go diff --git a/internal/progress/progress_noop.go b/v2/internal/progress/progress_noop.go similarity index 100% rename from internal/progress/progress_noop.go rename to v2/internal/progress/progress_noop.go diff --git a/internal/progress/stdcapture.go b/v2/internal/progress/stdcapture.go similarity index 100% rename from internal/progress/stdcapture.go rename to v2/internal/progress/stdcapture.go diff --git a/internal/runner/banner.go b/v2/internal/runner/banner.go similarity index 100% rename from internal/runner/banner.go rename to v2/internal/runner/banner.go diff --git a/internal/runner/config.go b/v2/internal/runner/config.go similarity index 100% rename from internal/runner/config.go rename to v2/internal/runner/config.go diff --git a/internal/runner/doc.go b/v2/internal/runner/doc.go similarity index 100% rename from internal/runner/doc.go rename to v2/internal/runner/doc.go diff --git a/internal/runner/options.go b/v2/internal/runner/options.go similarity index 100% rename from internal/runner/options.go rename to v2/internal/runner/options.go diff --git a/internal/runner/paths.go b/v2/internal/runner/paths.go similarity index 100% rename from internal/runner/paths.go rename to v2/internal/runner/paths.go diff --git a/internal/runner/processor.go b/v2/internal/runner/processor.go similarity index 100% rename from internal/runner/processor.go rename to v2/internal/runner/processor.go diff --git a/internal/runner/runner.go b/v2/internal/runner/runner.go similarity index 100% rename from internal/runner/runner.go rename to v2/internal/runner/runner.go diff --git a/internal/runner/templates.go b/v2/internal/runner/templates.go similarity index 100% rename from internal/runner/templates.go rename to v2/internal/runner/templates.go diff --git a/internal/runner/update.go b/v2/internal/runner/update.go similarity index 100% rename from internal/runner/update.go rename to v2/internal/runner/update.go diff --git a/pkg/atomicboolean/bool.go b/v2/pkg/atomicboolean/bool.go similarity index 100% rename from pkg/atomicboolean/bool.go rename to v2/pkg/atomicboolean/bool.go diff --git a/pkg/colorizer/colorizer.go b/v2/pkg/colorizer/colorizer.go similarity index 100% rename from pkg/colorizer/colorizer.go rename to v2/pkg/colorizer/colorizer.go diff --git a/pkg/executer/dns_utils.go b/v2/pkg/executer/dns_utils.go similarity index 100% rename from pkg/executer/dns_utils.go rename to v2/pkg/executer/dns_utils.go diff --git a/pkg/executer/executer_dns.go b/v2/pkg/executer/executer_dns.go similarity index 100% rename from pkg/executer/executer_dns.go rename to v2/pkg/executer/executer_dns.go diff --git a/pkg/executer/executer_http.go b/v2/pkg/executer/executer_http.go similarity index 100% rename from pkg/executer/executer_http.go rename to v2/pkg/executer/executer_http.go diff --git a/pkg/executer/http_utils.go b/v2/pkg/executer/http_utils.go similarity index 100% rename from pkg/executer/http_utils.go rename to v2/pkg/executer/http_utils.go diff --git a/pkg/executer/output_dns.go b/v2/pkg/executer/output_dns.go similarity index 100% rename from pkg/executer/output_dns.go rename to v2/pkg/executer/output_dns.go diff --git a/pkg/executer/output_http.go b/v2/pkg/executer/output_http.go similarity index 100% rename from pkg/executer/output_http.go rename to v2/pkg/executer/output_http.go diff --git a/pkg/extractors/compile.go b/v2/pkg/extractors/compile.go similarity index 100% rename from pkg/extractors/compile.go rename to v2/pkg/extractors/compile.go diff --git a/pkg/extractors/doc.go b/v2/pkg/extractors/doc.go similarity index 100% rename from pkg/extractors/doc.go rename to v2/pkg/extractors/doc.go diff --git a/pkg/extractors/extract.go b/v2/pkg/extractors/extract.go similarity index 100% rename from pkg/extractors/extract.go rename to v2/pkg/extractors/extract.go diff --git a/pkg/extractors/extractors.go b/v2/pkg/extractors/extractors.go similarity index 100% rename from pkg/extractors/extractors.go rename to v2/pkg/extractors/extractors.go diff --git a/pkg/generators/attack.go b/v2/pkg/generators/attack.go similarity index 100% rename from pkg/generators/attack.go rename to v2/pkg/generators/attack.go diff --git a/pkg/generators/clusterbomb.go b/v2/pkg/generators/clusterbomb.go similarity index 100% rename from pkg/generators/clusterbomb.go rename to v2/pkg/generators/clusterbomb.go diff --git a/pkg/generators/dsl.go b/v2/pkg/generators/dsl.go similarity index 100% rename from pkg/generators/dsl.go rename to v2/pkg/generators/dsl.go diff --git a/pkg/generators/pitchfork.go b/v2/pkg/generators/pitchfork.go similarity index 100% rename from pkg/generators/pitchfork.go rename to v2/pkg/generators/pitchfork.go diff --git a/pkg/generators/sniper.go b/v2/pkg/generators/sniper.go similarity index 100% rename from pkg/generators/sniper.go rename to v2/pkg/generators/sniper.go diff --git a/pkg/generators/util.go b/v2/pkg/generators/util.go similarity index 100% rename from pkg/generators/util.go rename to v2/pkg/generators/util.go diff --git a/pkg/matchers/compile.go b/v2/pkg/matchers/compile.go similarity index 100% rename from pkg/matchers/compile.go rename to v2/pkg/matchers/compile.go diff --git a/pkg/matchers/doc.go b/v2/pkg/matchers/doc.go similarity index 100% rename from pkg/matchers/doc.go rename to v2/pkg/matchers/doc.go diff --git a/pkg/matchers/match.go b/v2/pkg/matchers/match.go similarity index 100% rename from pkg/matchers/match.go rename to v2/pkg/matchers/match.go diff --git a/pkg/matchers/match_test.go b/v2/pkg/matchers/match_test.go similarity index 100% rename from pkg/matchers/match_test.go rename to v2/pkg/matchers/match_test.go diff --git a/pkg/matchers/matchers.go b/v2/pkg/matchers/matchers.go similarity index 100% rename from pkg/matchers/matchers.go rename to v2/pkg/matchers/matchers.go diff --git a/pkg/matchers/util.go b/v2/pkg/matchers/util.go similarity index 100% rename from pkg/matchers/util.go rename to v2/pkg/matchers/util.go diff --git a/pkg/requests/bulk-http-request.go b/v2/pkg/requests/bulk-http-request.go similarity index 100% rename from pkg/requests/bulk-http-request.go rename to v2/pkg/requests/bulk-http-request.go diff --git a/pkg/requests/dns-request.go b/v2/pkg/requests/dns-request.go similarity index 100% rename from pkg/requests/dns-request.go rename to v2/pkg/requests/dns-request.go diff --git a/pkg/requests/doc.go b/v2/pkg/requests/doc.go similarity index 100% rename from pkg/requests/doc.go rename to v2/pkg/requests/doc.go diff --git a/pkg/requests/generator.go b/v2/pkg/requests/generator.go similarity index 100% rename from pkg/requests/generator.go rename to v2/pkg/requests/generator.go diff --git a/pkg/requests/util.go b/v2/pkg/requests/util.go similarity index 100% rename from pkg/requests/util.go rename to v2/pkg/requests/util.go diff --git a/pkg/templates/compile.go b/v2/pkg/templates/compile.go similarity index 100% rename from pkg/templates/compile.go rename to v2/pkg/templates/compile.go diff --git a/pkg/templates/doc.go b/v2/pkg/templates/doc.go similarity index 100% rename from pkg/templates/doc.go rename to v2/pkg/templates/doc.go diff --git a/pkg/templates/templates.go b/v2/pkg/templates/templates.go similarity index 100% rename from pkg/templates/templates.go rename to v2/pkg/templates/templates.go diff --git a/pkg/workflows/compile.go b/v2/pkg/workflows/compile.go similarity index 100% rename from pkg/workflows/compile.go rename to v2/pkg/workflows/compile.go diff --git a/pkg/workflows/doc.go b/v2/pkg/workflows/doc.go similarity index 100% rename from pkg/workflows/doc.go rename to v2/pkg/workflows/doc.go diff --git a/pkg/workflows/var.go b/v2/pkg/workflows/var.go similarity index 100% rename from pkg/workflows/var.go rename to v2/pkg/workflows/var.go diff --git a/pkg/workflows/workflows.go b/v2/pkg/workflows/workflows.go similarity index 100% rename from pkg/workflows/workflows.go rename to v2/pkg/workflows/workflows.go