Skip to content
This repository was archived by the owner on May 26, 2024. It is now read-only.
This repository was archived by the owner on May 26, 2024. It is now read-only.

Consider providing build instructions for people who aren't familiar with Go #5

Description

@Znuff

As per title, as a complete newbie to Go, which is only interested in running the binary result of this project, I have absolutely no idea and I feel at a total loss on how to get this running.

After cloning the repo, you are left running make until to get a "cryptic" make: golangci-lint: Command not found error.

Upon searching for this command on the web (because it's nowhere in my distributions' packages), I could only stumble upon this github issue: golangci/golangci-lint#648

Obviously, running that go get ... command doesn't really seem to do anything, because it:

  1. doesn't exactly output anything (unless you run it with -v as I have found out later) to the terminal
  2. still doesn't provide you with any golangci-lint command anyway

Eventually my adventure led me to https://golangci-lint.run/usage/install/#local-installation

After I finally realized that Golang itself doesn't give a rats' ass about any known Linux conventions that people have been accustomed over the last 20+ years and just place new binaries in /usr/local/bin (if system-wide), or, even better, just use the $HOME/bin as normal software does, and just decides to add binaries to $HOME/go/bin, because why the hell not, I got myself a working golangci-lint.

But then, I was met with the great:

rm -rf dist/ builds/ cover.out
golangci-lint run
ERRO Running error: context loading failed: failed to load program with go/packages: unsupported version of go: exit status 2: flag provided but not defined: -compiled
usage: list [-e] [-f format] [-json] [build flags] [packages]
Run 'go help list' for details.
Makefile:32: recipe for target 'checks' failed
make: *** [checks] Error 3

2/10, poor user experience

I realise that this project's purpose is not to teach Golang-clueless people like me the inner works on this whole eco-system, and that I only got myself to blame, but please consider providing built binaries of this project because it does seem like a very useful project all around, and it's just sad that I need a 2 days crash-course intro to Golang to actually figure out how to run it

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