-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: support git/subcommand
invocations for git9 on plan9
#68926
Comments
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
go
will not always find git
when using Plan9git/subcommand
invocations for git9 on plan9
Note that "git9" does not try to be totally compatible with the standard Shouldn't this work with the rc wrapper from 9legacy, which predates "git9"? |
Its not in 9front, which is the most popular plan9 distribution. And its been deprecated in favor of |
I forgot about the
|
CC @golang/plan9. |
@krstlmnn is correct, as documented in the go wiki the wraoper is available to emulate just enough of git to be used by the go tools. It's not "in" 9front or any other version of Plan 9 -- it's just a simple shell script which you can download from 9legacy, and ensure it's bound in place of /bin/git before using The 9front If you want to use But I don't think there's any need to alter the go tools to accommodate 9front specially, when there's already a portable solution. |
There's two different wrappers here: 'git/compat' and the http based wrapper scripts. Git/compat ships with 9front, but breaks pretty regularly, as go changes the features of git that it uses. Right now, the module cache is the least painful option. If the go team is open to it, invoking git9 would be a much better option. I'd be happy to take a shot at that, as well as figuring out how to test it. |
@oridb, can you give a current example where the portable rc wrapper doesn't work? |
Sorry for the slow response -- I was on vacation. Looking at the reports I've gotten, bootstrapping has been the most painful part. I don't think the rc wrapper tries to deal with that (or with self-hosted repos). I'll re-close, but I still think that if the go project is open to it, direct support for git/* would be nice on plan 9. |
Why is this closed as Completed..? Will this not be fixed? |
Go version
go1.23.0 plan9/amd64
Output of
go env
in your module/workspace:What did you do?
go install github.com/peajack/truefetch@main
, but anyinstall
command will do. Actually, any command that relies on callinggit
.What did you see happen?
go: github.com/peajack/truefetch@main: git init --bare in /usr/glenda/.config/go/cache/pkg/mod/cache/vcs/85d6972f1025dadd3cbae4796f5cd2cffa4c5c529c72c4081ee43145033f601d: exec: "git": executable file not found in $path
NOTE: In ACME, you just 'type a button' in the bar and then do MOUSE3 to execute it, the output is then redirected to a new column in the editor. Executing the commands in '
window
' (our "terminal") gives the same result.What did you expect to see?
... Nothing, just
go
downloading the libraries/packages on whichtruefetch
depends on and then compiling, like normal. OnPlan9
, the most recent, usable and reliablegit
port that we have isgit9
, which comes with 9front and can be found at/sys/src/cmd/git
. Thegit
binaries are at/bin/git/*
.go
should have calledgit/subCommand <args>
, notgit subCommand <args>
.The text was updated successfully, but these errors were encountered: