Skip to content
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

git gui not working #1041

Open
fengjianyun opened this issue Oct 11, 2024 · 6 comments
Open

git gui not working #1041

fengjianyun opened this issue Oct 11, 2024 · 6 comments

Comments

@fengjianyun
Copy link

I'm very new to pkgx. Thank you for developping such a wonderful tool.

I try to use it with an old Spring boot project, and I've created a .pkgx.yml with only two dependencies:

dependencies:
  java@11 mvn@3.6

And I've used dev to initialize the environment.

The mvn commands work like a charm. But git gui doesn't work any more.

$ git gui
fatal: 'gui' appears to be a git command, but we were not
able to execute it. Maybe git-gui is broken?

With which git, I can find that it's git installed by pkgx is used.
/home/xx/.pkgx/git-scm.org/v2.47.0/bin/git

As a workarond, I can run env -git to use my global git without any problem. So how can I do that in .pkgx.yml to tell pkgx not to install a local git.

Thank you very much.

@fengjianyun
Copy link
Author

The pkgx version is 1.2.2

@jhheider
Copy link
Contributor

Hm. I don't see git in my environment with that .pkgx.yml, albeit on macOS. I would do a dev off; echo $PATH | tr ':' '\n' | grep git-scm and ensure it's not coming in some other way. You should be able to check that again after doing dev as well.

@jhheider
Copy link
Contributor

we have an open ticket on pantry to complete git-gui, so packaging that is another option, but that doesn't solve your mystery, only your outcome.

@mxcl
Copy link
Member

mxcl commented Oct 11, 2024

Where is git-gui installed?

@fengjianyun
Copy link
Author

Sorry, I've forgotten to mention that I use WSL 2 (Ubuntu).

I think it's added because of the .git directory.

I don't know. With which git-gui, no result is displayed in the dev enabled directory or an ordinary directory.

@fengjianyun
Copy link
Author

Hm. I don't see git in my environment with that .pkgx.yml, albeit on macOS. I would do a dev off; echo $PATH | tr ':' '\n' | grep git-scm and ensure it's not coming in some other way. You should be able to check that again after doing dev as well.

I tested the command.

with dev off, there's no git-scm found. The output is

env -openjdk.org^21 -maven.apache.org~3.9 -git-scm.org

After dev, the output of echo $PATH | tr ':' '\n' | grep git-scm is

/home/xx/.pkgx/git-scm.org/v2.47.0/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants