Spec URL: https://fab.fedorapeople.org/packages/SRPMS/golang-github-projectdiscovery-cdncheck.spec SRPM URL: https://fab.fedorapeople.org/packages/SRPMS/golang-github-projectdiscovery-cdncheck-0-0.1.20200922git19e1db6.fc32.src.rpm Project URL: https://github.com/projectdiscovery/cdncheck Description: A filter to check for CDN IP addresses during port scanning. Koji scratch build: fails due to missing dependency rpmlint output: $ rpmlint golang-github-projectdiscovery-cdncheck-0-0.1.20200922git19e1db6.fc32.src.rpm golang-github-projectdiscovery-cdncheck.src: W: no-%build-section 1 packages and 0 specfiles checked; 0 errors, 1 warnings. $ rpmlint golang-github-projectdiscovery-cdncheck-devel-0-0.1.20200922git19e1db6.fc32.noarch.rpm golang-github-projectdiscovery-cdncheck-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/projectdiscovery/cdncheck/.goipath 1 packages and 0 specfiles checked; 0 errors, 1 warnings. Fedora Account System Username: fab
- Bump to latest commit before import - Tests fail, Seems they need network access: Testing in: /builddir/build/BUILD/cdncheck-19e1db650e26adfbd81f1e01c66633f7d1ab7e3c/_build/src PATH: /builddir/build/BUILD/cdncheck-19e1db650e26adfbd81f1e01c66633f7d1ab7e3c/_build/bin:/usr/lib64/ccache:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin GOPATH: /builddir/build/BUILD/cdncheck-19e1db650e26adfbd81f1e01c66633f7d1ab7e3c/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags " -X github.com/projectdiscovery/cdncheck/version=0 -X github.com/projectdiscovery/cdncheck/version.commit=19e1db650e26adfbd81f1e01c66633f7d1ab7e3c -extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" testing: github.com/projectdiscovery/cdncheck github.com/projectdiscovery/cdncheck --- FAIL: TestCDNCheck (0.00s) cdncheck_test.go:12: Error Trace: cdncheck_test.go:12 Error: Expected nil, but got: &url.Error{Op:"Get", URL:"https://ipinfo.io/AS12222", Err:(*net.OpError)(0xc000072690)} Test: TestCDNCheck Messages: Could not create cdncheck client --- FAIL: TestScrapeRanges (0.00s) --- FAIL: TestScrapeRanges/cloudflare (0.00s) ranges_test.go:27: Error Trace: ranges_test.go:27 Error: Expected nil, but got: &url.Error{Op:"Get", URL:"https://www.cloudflare.com/ips-v4", Err:(*net.OpError)(0xc0000727d0)} Test: TestScrapeRanges/cloudflare Messages: Could not scrape cloudflare --- FAIL: TestScrapeRanges/incapsula (0.00s) ranges_test.go:31: Error Trace: ranges_test.go:31 Error: Expected nil, but got: &url.Error{Op:"Post", URL:"https://my.incapsula.com/api/integration/v1/ips", Err:(*net.OpError)(0xc0000728c0)} Test: TestScrapeRanges/incapsula Messages: Could not scrape incapsula --- FAIL: TestScrapeRanges/akamai (0.00s) ranges_test.go:35: Error Trace: ranges_test.go:35 Error: Expected nil, but got: &url.Error{Op:"Get", URL:"https://ipinfo.io/AS12222", Err:(*net.OpError)(0xc0000729b0)} Test: TestScrapeRanges/akamai Messages: Could not scrape akamai --- FAIL: TestScrapeRanges/sucuri (0.00s) ranges_test.go:39: Error Trace: ranges_test.go:39 Error: Expected nil, but got: &url.Error{Op:"Get", URL:"https://ipinfo.io/AS30148", Err:(*net.OpError)(0xc000072aa0)} Test: TestScrapeRanges/sucuri Messages: Could not scrape sucuri FAIL exit status 1 FAIL github.com/projectdiscovery/cdncheck 0.008s
Thanks for your input. %changelog * Mon Nov 16 10:01:13 CET 2020 Fabian Affolter <mail> - 0-0.2.20201116git5bc57c3 - Tests requires network access (#1881572) - Update to latest commit Koji build: https://koji.fedoraproject.org/koji/taskinfo?taskID=56756864 Updated files: Spec URL: https://fab.fedorapeople.org/packages/SRPMS/golang-github-projectdiscovery-cdncheck.spec https://fab.fedorapeople.org/packages/SRPMS/golang-github-projectdiscovery-cdncheck-0-0.2.20201116git5bc57c3.fc33.src.rpm
+ Please package published version instead of a git commit: https://github.com/projectdiscovery/cdncheck/releases/tag/v0.0.1 - License ok - Latest version packaged - Builds in mock - No rpmlint errors - Conforms to Packaging Guidelines Package approved.
Thanks for the review.
(fedscm-admin): The Pagure repository was created at https://src.fedoraproject.org/rpms/golang-github-projectdiscovery-cdncheck