i want to clone and install a GitHub repository but get an error.
git clone https://github.com/bandprotocol/chain
cd chain && git checkout v2.3.0
make install
Result:
..\go\pkg\mod\github.com\rcrowley\go-metrics#v0.0.0-20200313005456-10cdbea86bc0\runtime.go:5:2: found packages pprof (elf.go) and proto (proto.go) in C:\Users\user\go\GO Language\src\runtime\pprof
make: *** [Makefile:24: install] Error 1
If i delete for example one file he takes the next two out of this folder.
Thanks for help and answers
Related
I developed a go module and pushed it to github, when I am trying to install it with the go install command its showing
go: downloading github.com/hvuhsg/lokidbServer v0.0.0-20220825205442-250079f3d6e9
go: github.com/hvuhsg/lokidbServer/cmd/lokidb.go#latest: github.com/hvuhsg/lokidbServer#v0.0.0-20220825205442-250079f3d6e9: verifying module: github.com/hvuhsg/lokidbServer#v0.0.0-20220825205442-250079f3d6e9: reading https://sum.golang.org/lookup/github.com/hvuhsg/lokidb!server#v0.0.0-20220825205442-250079f3d6e9: 404 Not Found
server response:
not found: github.com/hvuhsg/lokidbServer#v0.0.0-20220825205442-250079f3d6e9: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/023bef7fbf7701c1dd80019746ac35a6d71aa94fa9b3961e0dadef371238a56e: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
P.S: the repo is public
The full command is
go install github.com/hvuhsg/lokidbServer/cmd/lokidb.go#latest
You can install it like this:
go install github.com/hvuhsg/lokidbServer/cmd#latest
If the repo is yours, I would recommend adding a folder lokidb to the cmd folder, and put the main package inside of it.
Check this repo as an example:
go install github.com/fraugster/parquet-go/cmd/csv2parquet#latest
Another option is to add a file to the root of the directory, like its done here (in this case, the package inside go.mod is defined as github.com/vektra/mockery/v2):
go install github.com/vektra/mockery/v2#latest
With and old laravel 5.5 project i am having this problem.
A package I was using has been removed from github and when i try composer install I get:
[RuntimeException]
Failed to execute git clone --mirror 'https://***:***#github.com/dangeroustry/FattureCloud.git' '/home/mir
co/.cache/composer/vcs/https---github.com-dangeroustry-FattureCloud.git/'
Cloning into bare repository '/home/username/.cache/composer/vcs/https---github.com-dangeroustry-FattureCloud
.git'...
remote: Repository not found.
fatal: repository 'https://github.com/dangeroustry/FattureCloud.git/' not found
So I tried to remove this package with composer remove vendor/package but I can't remove it.
When i run the command
composer remove vendor/kiboko/fatture-cloud-laravel/
I get this error
[Composer\Downloader\TransportException]
The "https://api.github.com/repos/dangeroustry/FattureCloud/zipball/4c4133a965985c1b8c6e41bbfb47ec912a167681" file could not be downlo
aded (HTTP/2 404 )
How to solve this loop?
Folks, am trying to run some go tests. Seems to be a failure with git configuration on the box?
Am running git version 1.8.3.1 before someone asks... go version 1.13.1
Builds pass for me locally on my mac and linux... but seem to fail in Jenkins
go test -v ./... -tags=unit
go: bitbucket.org/xxxxxxx/yyyyyyy#v1.0.82 requires
cloud.google.com/go/storage#v1.6.0 requires
cloud.google.com/go#v0.53.0 requires
cloud.google.com/go/bigquery#v1.3.0 requires
golang.org/x/exp#v0.0.0-20191030013958-a1ab85dbe136: invalid version: git fetch --unshallow -f https://go.googlesource.com/exp in /var/lib/jenkins/go/pkg/mod/cache/vcs/879ce674f4d9f0a3a3f207a6503e782bb2113f1a3d0c1f8049cc523b96d9aa9e: exit status 128:
fatal: git fetch-pack: expected shallow list
make[1]: *** [unit-test] Error 1
make[1]: Leaving directory `/var/lib/jenkins/workspace/xxxxxx/yyyyy'
make: *** [test] Error 2
Build step 'Execute shell' marked build as failure
[Slack Notifications] found #1 as previous completed, non-aborted build
[Slack Notifications] will send OnEveryFailureNotification because build matches and user preferences allow it
Finished: FAILURE
Solution was simple, bump up the version of git in GCP
when executing
go get -u github.com/hyperledger/fabric-ca/cmd/
from the fabric-ca guide, I get the following error:
# cd /home/pi/go/src/github.com/hyperledger/fabric-ca; git pull --ff-only
error: cannot open .git/FETCH_HEAD: Permission denied
package github.com/hyperledger/fabric-ca/cmd: exit status 1`
I tried git cloning and it downloaded everything from the fabric-ca repository, then I tried installing fabric-server and client by myself like this:
sudo make fabric-ca-server
this also produced the following error:
Building fabric-ca-server in bin directory ...
/bin/sh: 1: go: not found
Makefile:91: recipe for target 'bin/fabric-ca-server' failed
make: *** [bin/fabric-ca-server] Error 127
Looks like your GOPATH is set to /home/pi/go and appears that you do not have access to somewhere along the path to /home/pi/go/src/github.com/hyperledger/fabric-ca.
I'd check make sure that the user you are running go get with has R/W access to /home/pi/go/src
On macOS:
I tried to compile libipatcher with
./autogen.sh
Then I get this error:
libipatcher.cpp:17:10: fatal error: 'jssy.h' file not found #include "jssy.h"
^~~~~~~~
1 error generated.
make[1]: * [libipatcher_la-libipatcher.lo] Error 1
make: * [check-recursive] Error 1
And the developer has a jssy Xcode project where the jssy.h file is located.
How can I fix it?
jssy is in a submodule so you need to fetch it.
To do so, according to pull using git including submodule, either:
git clone --recursive https://github.com/tihmstar/libipatcher.git
or:
git submodule init; git submodule update
or use SourceTree.
Then you can attempt ./autogen.sh.