justmao945 / mallory

HTTP/HTTPS proxy over SSH
MIT License
324 stars 68 forks source link

go get fails on git clone #20

Open mdavis-xyz opened 2 years ago

mdavis-xyz commented 2 years ago

Steps to reproduce:

On Amazon Linux 2, with no git config set (e.g. git user email), as per the README:

go get github.com/justmao945/mallory/cmd/mallory

Expected result: mallory is downloaded, compiled and installed

Actual result:

# cd /home/ec2-user/go/src/golang.org/x/net; git pull --ff-only
From https://go.googlesource.com/net
 * [new branch]      internal-branch.go1.16-vendor -> origin/internal-branch.go1.16-vendor
 * [new branch]      internal-branch.go1.17-vendor -> origin/internal-branch.go1.17-vendor
 * [new branch]      master                -> origin/master
 * [new branch]      release-branch.go1.10 -> origin/release-branch.go1.10
 * [new branch]      release-branch.go1.11 -> origin/release-branch.go1.11
 * [new branch]      release-branch.go1.12 -> origin/release-branch.go1.12
 * [new branch]      release-branch.go1.13 -> origin/release-branch.go1.13
 * [new branch]      release-branch.go1.14 -> origin/release-branch.go1.14
 * [new branch]      release-branch.go1.15 -> origin/release-branch.go1.15
 * [new branch]      release-branch.go1.15-bundle -> origin/release-branch.go1.15-bundle
 * [new branch]      release-branch.go1.6  -> origin/release-branch.go1.6
 * [new branch]      release-branch.go1.7  -> origin/release-branch.go1.7
 * [new branch]      release-branch.go1.8  -> origin/release-branch.go1.8
 * [new branch]      release-branch.go1.9  -> origin/release-branch.go1.9
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

package golang.org/x/net/publicsuffix: exit status 1
# cd /home/ec2-user/go/src/gopkg.in/fsnotify.v1; git pull --ff-only
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

package gopkg.in/fsnotify.v1: exit status 1

This looks like an error in the git clone step. I'm not familiar with golang, so I don't know how it's cloning the repo. Is the suffix cmd/mallory supposed to be there in the command?