abra build fails, missing passgen repo? #358

Closed
opened 2022-11-08 16:25:02 +00:00 by 3wordchant · 12 comments
Owner
  1. git clone <abra repo>
  2. make build

Expected: works

Actual:

➜ make
go: github.com/schollz/progressbar/v3@v3.12.1: missing go.sum entry; to add it:
	go mod download github.com/schollz/progressbar/v3
go: downloading github.com/schultz-is/passgen v1.0.1
go: github.com/schollz/progressbar/v3@v3.12.1: missing go.sum entry; to add it:
	go mod download github.com/schollz/progressbar/v3
make: *** [Makefile:20: build] Error 1
1. `git clone <abra repo>` 2. `make build` Expected: works Actual: ``` ➜ make go: github.com/schollz/progressbar/v3@v3.12.1: missing go.sum entry; to add it: go mod download github.com/schollz/progressbar/v3 go: downloading github.com/schultz-is/passgen v1.0.1 go: github.com/schollz/progressbar/v3@v3.12.1: missing go.sum entry; to add it: go mod download github.com/schollz/progressbar/v3 make: *** [Makefile:20: build] Error 1 ```
3wordchant added the
bug
abra
labels 2022-11-08 16:25:02 +00:00
Owner

@3wordchant ugh, it works for me... I see the package is still available via https://pkg.go.dev/github.com/schultz-is/passgen so this shouldn't be an issue... which Go version are you running?

Could be a version incompatibility thing? I'm on go version go1.18.3 linux/amd64. I sometimes try to rm -rf ~/go to get back to a clean state (how I tested this). Your system Go may work differently though...

Strangely I don't see passgen even mentioned in the git log of progressbar? If you run go get -v -d -u ./... and then make build, does it work?

@3wordchant ugh, it works for me... I see the package is still available via https://pkg.go.dev/github.com/schultz-is/passgen so this shouldn't be an issue... which Go version are you running? Could be a version incompatibility thing? I'm on `go version go1.18.3 linux/amd64`. I sometimes try to `rm -rf ~/go` to get back to a clean state (how I tested this). Your system Go may work differently though... Strangely I don't see `passgen` even mentioned in the `git log` of progressbar? If you run `go get -v -d -u ./...` and then `make build`, does it work?
Author
Owner

oh i didn't notice the reply, thanks @decentral1se!

I'm on go version go1.18.7 linux/amd64

Strangely I don't see passgen even mentioned in the git log of progressbar?

I think they're separate packages pulled in via go.mod / go.sum? Wallowing in ignorance over here tho.

I sometimes try to rm -rf ~/go
..
If you run go get -v -d -u ./... and then make build, does it work?

Gonna try these now

oh i didn't notice the reply, thanks @decentral1se! I'm on `go version go1.18.7 linux/amd64` > Strangely I don't see passgen even mentioned in the git log of progressbar? I think they're separate packages pulled in via `go.mod` / `go.sum`? Wallowing in ignorance over here tho. > I sometimes try to `rm -rf ~/go` > .. > If you run go get -v -d -u ./... and then make build, does it work? Gonna try these now
Author
Owner
➜ go get -v -d -u ./...
get "coopcloud.tech/libcapsul": found meta tag vcs.metaImport{Prefix:"coopcloud.tech/libcapsul", VCS:"git", RepoRoot:"https://git.coopcloud.tech/servers.coop/libcapsul"} at //coopcloud.tech/libcapsul?go-get=1
get "coopcloud.tech/tagcmp": found meta tag vcs.metaImport{Prefix:"coopcloud.tech/tagcmp", VCS:"git", RepoRoot:"https://git.coopcloud.tech/coop-cloud/tagcmp"} at //coopcloud.tech/tagcmp?go-get=1
verifying github.com/libdns/gandi@v1.0.2/go.mod: checksum mismatch
	downloaded: h1:VN+Lh8Teq6nYszNsPSLKdIv24hOCcQu0rJWHQa2jPZc=
	go.sum:     h1:hxpbQKcQFgQrTS5lV4tAgn6QoL6HcCnoBJaW5nOW4Sk=
``` ➜ go get -v -d -u ./... get "coopcloud.tech/libcapsul": found meta tag vcs.metaImport{Prefix:"coopcloud.tech/libcapsul", VCS:"git", RepoRoot:"https://git.coopcloud.tech/servers.coop/libcapsul"} at //coopcloud.tech/libcapsul?go-get=1 get "coopcloud.tech/tagcmp": found meta tag vcs.metaImport{Prefix:"coopcloud.tech/tagcmp", VCS:"git", RepoRoot:"https://git.coopcloud.tech/coop-cloud/tagcmp"} at //coopcloud.tech/tagcmp?go-get=1 verifying github.com/libdns/gandi@v1.0.2/go.mod: checksum mismatch downloaded: h1:VN+Lh8Teq6nYszNsPSLKdIv24hOCcQu0rJWHQa2jPZc= go.sum: h1:hxpbQKcQFgQrTS5lV4tAgn6QoL6HcCnoBJaW5nOW4Sk= ```
Author
Owner
➜ make
verifying github.com/libdns/gandi@v1.0.2/go.mod: checksum mismatch
	downloaded: h1:VN+Lh8Teq6nYszNsPSLKdIv24hOCcQu0rJWHQa2jPZc=
	go.sum:     h1:hxpbQKcQFgQrTS5lV4tAgn6QoL6HcCnoBJaW5nOW4Sk=
``` ➜ make verifying github.com/libdns/gandi@v1.0.2/go.mod: checksum mismatch downloaded: h1:VN+Lh8Teq6nYszNsPSLKdIv24hOCcQu0rJWHQa2jPZc= go.sum: h1:hxpbQKcQFgQrTS5lV4tAgn6QoL6HcCnoBJaW5nOW4Sk= ```
Owner

@3wordchant Jeez, you're really having a bad run with the 'ol Go builds. Your setup seem to be plagued by some Go borkage from before - these error messages look like the ones happening the last time you ran into build errors? Idk your local setup again but I'd just rm -rf ~/go at this point if you haven't already (but I have a feeling you did already try this once...). Maybe there is something caching in your builds that shouldn't be caching now... I'm a bit lost, sorry 😬

@3wordchant Jeez, you're really having a bad run with the 'ol Go builds. Your setup seem to be plagued by some Go borkage from before - these error messages look like the ones happening the last time you ran into build errors? Idk your local setup again but I'd just `rm -rf ~/go` at this point if you haven't already (but I have a feeling you did already try this once...). Maybe there is something caching in your builds that shouldn't be caching now... I'm a bit lost, sorry 😬
Author
Owner

Yep, definitely a kind of a haunted experience so far! 👻 Thanks for help and solidarity 🤝

Idk your local setup again but I'd just rm -rf ~/go at this point if you haven't already (but I have a feeling you did already try this once...).

Being a masochist with overly-strong preferences about my home directory, I set GOPATH=/home/user/.go, and I did rm -rf /home/user/.go/ before trying the above.

I'll try that again, maybe go Docker image again if that still doesn't work, and after that ... idk, a séance?

Yep, definitely a kind of a haunted experience so far! 👻 Thanks for help and solidarity 🤝 > Idk your local setup again but I'd just `rm -rf ~/go` at this point if you haven't already (but I have a feeling you did already try this once...). Being a masochist with overly-strong preferences about my home directory, I set `GOPATH=/home/user/.go`, and I did `rm -rf /home/user/.go/` before trying the above. I'll try that again, maybe `go` Docker image again if that still doesn't work, and after that ... idk, a séance?
Author
Owner

OK, making more progress with rm -rf ~/.go && rm go.sum && go get -v -d -u ./... – also realised I needed to run direnv allow.

OK, making more progress with `rm -rf ~/.go && rm go.sum && go get -v -d -u ./...` – also realised I needed to run `direnv allow`.
Author
Owner

Nope, back to this:

go: github.com/schultz-is/passgen@v1.0.1: reading github.com/schultz-is/passgen/go.mod at revision v1.0.1: git ls-remote -q origin in /home/f/.go/pkg/mod/cache/vcs/2aea0cd2dfaf4563087ab699acb97529285b567cc1982626526ac73f8d80122e: exit status 128:
	fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.

😭

Nope, back to this: ``` go: github.com/schultz-is/passgen@v1.0.1: reading github.com/schultz-is/passgen/go.mod at revision v1.0.1: git ls-remote -q origin in /home/f/.go/pkg/mod/cache/vcs/2aea0cd2dfaf4563087ab699acb97529285b567cc1982626526ac73f8d80122e: exit status 128: fatal: could not read Username for 'https://github.com': terminal prompts disabled Confirm the import path was entered correctly. ``` 😭
Owner

Holy fack @3wordchant this is unrelated from the deps hell? Check this mania https://stackoverflow.com/questions/32232655/go-get-results-in-terminal-prompts-disabled-error-for-github-private-repo omg i can't even...

Holy fack @3wordchant this is unrelated from the deps hell? Check this mania https://stackoverflow.com/questions/32232655/go-get-results-in-terminal-prompts-disabled-error-for-github-private-repo omg i can't even...
Author
Owner

@decentral1se yeah that's definitely the same error message 🎉

As far as I can make out (through the fog of me not knowing anything), there's no way around schultz-is/passgen having been removed from github, other than finding forks? (Which is difficult given the repo has been completely memory-holed)

e.g. the instructions on https://pkg.go.dev/github.com/schultz-is/passgen don't work for me:

➜ git clone -b stable --depth 1 https://github.com/schultz-is/passgen.git
Cloning into 'passgen'...
Username for 'https://github.com': 

Are you sure the abra build still works for you if you fully kill your cache your end?

@decentral1se yeah that's definitely the same error message 🎉 As far as I can make out (through the fog of me not knowing anything), there's no way around `schultz-is/passgen` having been removed from github, other than finding forks? (Which is difficult given the repo has been completely memory-holed) e.g. the instructions on https://pkg.go.dev/github.com/schultz-is/passgen don't work for me: ``` ➜ git clone -b stable --depth 1 https://github.com/schultz-is/passgen.git Cloning into 'passgen'... Username for 'https://github.com': ``` Are you sure the abra build still works for you if you fully kill your cache your end?
3wordchant changed title from abra build fails, missing passgen & progressbar repos? to abra build fails, missing passgen repo? 2022-11-14 04:54:00 +00:00
Author
Owner
Found a hack to try and find forks, didn't find any: ![image](/attachments/b797dc24-f372-4dcc-9075-de7c418cf4da) https://www.google.com/search?hl=en&q=%22forked%20from%20schultz%2Dis%2Fpassgen%22%20site%3Agithub.com
decentral1se referenced this issue from a commit 2022-11-14 14:19:29 +00:00
Author
Owner

Solved with a blesséd fork, thanks @decentral1se! 🙏

Solved with a blesséd fork, thanks @decentral1se! 🙏
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#358
No description provided.