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

Not working for me #38

Open
carlos837 opened this issue Jun 22, 2023 · 2 comments
Open

Not working for me #38

carlos837 opened this issue Jun 22, 2023 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@carlos837
Copy link

The tool is not working for me.
Error log:
❯ shulkr 1.8.9 1.9
Initializing git
Saving config
Creating gitignore

Traceback (most recent call last):
File "/home/carlos/.local/lib/python3.11/site-packages/command/init.py", line 69, in _run_command
proc = subprocess.run(
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'describe', '--tags']' returned non-zero exit status 128.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/bin/shulkr", line 8, in
sys.exit(main())
^^^^^^
File "/home/carlos/.local/lib/python3.11/site-packages/shulkr/main.py", line 5, in main
cli()
File "/usr/lib/python3.11/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carlos/.local/lib/python3.11/site-packages/shulkr/cli.py", line 67, in cli
run(versions, mappings, repo, message, tags, undo_renamed_vars)
File "/home/carlos/.local/lib/python3.11/site-packages/shulkr/app.py", line 62, in run
latest_in_repo=get_latest_generated_version()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carlos/.local/lib/python3.11/site-packages/shulkr/version.py", line 119, in get_latest_generated_version
if not head_has_versions():
^^^^^^^^^^^^^^^^^^^
File "/home/carlos/.local/lib/python3.11/site-packages/shulkr/version.py", line 108, in head_has_versions
raise e
File "/home/carlos/.local/lib/python3.11/site-packages/shulkr/version.py", line 99, in head_has_versions
repo.git.describe(tags=True)
File "/home/carlos/.local/lib/python3.11/site-packages/command/init.py", line 100, in func
return self._run_command(command)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/carlos/.local/lib/python3.11/site-packages/command/init.py", line 82, in _run_command
raise self._error(command, e.stderr) from e
mint.error.GitError: ['git', 'describe', '--tags']:
fatal: No se encontraron nombres, no se puede describir nada.

@clabe45 clabe45 added bug Something isn't working help wanted Extra attention is needed labels Jul 12, 2023
@Titaniumtown
Copy link

Do you have git installed?

@lolo45654
Copy link

Hi there, it seems to be an issue with this line. If the error message produced by git is in a different language, it will fail.

Replacing the content of head_has_versions with:

return get_repo().git.tag(l=True).strip() != ""

fixed it for me. It might however be better to first check git describe --tags, and if that fails do git tag -l.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants