Skip to content

Please provide build instructions #7

@wtarreau

Description

@wtarreau

I tried "make" which spewed this:

$ make
Validating with gofmtgofmt had something to say:
dirent_freebsd.go
dirent_other.go
make: *** [Makefile:38: test] Error 1

Then looking at the makefile I skipped "test" and tried:

$ make makedir
make directories... ok
$ make get_deps
get dependencies... go: downloading github.com/jessevdk/go-flags v1.5.0
go: downloading golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4
go: downloading github.com/gobwas/glob v0.2.3
ok
$ make build
run build... go: cannot find main module, but found .git/config in /path/to/locar
        to create a module there, run:
        go mod init
make: *** [Makefile:33: build] Error 1

I blindly tried "go mod init":

$ go mod init
go: cannot determine module path for source directory /path/to/locar (outside GOPATH, module path must be specified)

I also naively tried "go build" but it failed equally. From this point I'm out of luck using your utility, not even knowing what to look for. Build instructions are absolutely essential, especially for languages like Go that come with tons of dependencies and that are known to rarely work out of the box. Figuring how to get it to work would save me from implementing one in C (which is how I found this one).

In case that's of any use:

$ go version
go version go1.17.5 linux/amd64

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