Skip to content

Build fails when using reproducible build method #34

Description

@Edu4rdSHL

Hello, thank you for the work.

When you try to use a reproducble build process, the package fails.

Steps to reproduce:

1. go mod init go.mod
2. go mod tidy
3. go mod download
4. go build -o gosint -v -ldflags="-s -w" cmd/gosint/main.go

Then wait for:

└──╼ $ make gosint_build
go build -o gosint -v -ldflags="-s -w" cmd/gosint/main.go
package command-line-arguments
	cmd/gosint/main.go:7:2: use of internal package github.com/Nhoya/gOSINT/internal/axfr not allowed
package command-line-arguments
	cmd/gosint/main.go:8:2: use of internal package github.com/Nhoya/gOSINT/internal/git not allowed
package command-line-arguments
	cmd/gosint/main.go:9:2: use of internal package github.com/Nhoya/gOSINT/internal/hibp not allowed
package command-line-arguments
	cmd/gosint/main.go:10:2: use of internal package github.com/Nhoya/gOSINT/internal/pgp not allowed
package command-line-arguments
	cmd/gosint/main.go:11:2: use of internal package github.com/Nhoya/gOSINT/internal/pni not allowed
package command-line-arguments
	cmd/gosint/main.go:12:2: use of internal package github.com/Nhoya/gOSINT/internal/reversewhois not allowed
package command-line-arguments
	cmd/gosint/main.go:13:2: use of internal package github.com/Nhoya/gOSINT/internal/shodan not allowed
package command-line-arguments
	cmd/gosint/main.go:14:2: use of internal package github.com/Nhoya/gOSINT/internal/telegram not allowed
package command-line-arguments
	cmd/gosint/main.go:15:2: use of internal package github.com/Nhoya/gOSINT/internal/utils not allowed
make: *** [Makefile:14: gosint_build] Error 1

The change was introduced in https://golang.org/doc/go1.4#internalpackages, would be good if you change the repo name and update the dependencies pointing to the new directory name.

Thank you.

Regards,
Ed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions