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

UrlUpdater action causing strange error/warning #1115

Open
hohwille opened this issue Mar 7, 2025 · 0 comments
Open

UrlUpdater action causing strange error/warning #1115

hohwille opened this issue Mar 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@hohwille
Copy link
Member

hohwille commented Mar 7, 2025

I looked into the logs of the URL Updater github action and found this:

Run cd ide-urls
  cd ide-urls
  git config --global user.name ***
  git config --global user.email ***
  if [ "$(git status -z)" = "" ]
  then
    echo "No changes, nothing to commit."
  else
    git add .
    git commit -m "Update urls"
    git push
  fi
  shell: /usr/bin/bash -e {0}
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.14-7/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.14-7/x64
/home/runner/work/_temp/e5b35c3c-db99-478e-b5c6-35164fc9a7c9.sh: line 4: warning: command substitution: ignored null byte in input
[master ea3bbf01] Update urls

Can someone explain what is wrong here?

/home/runner/work/_temp/e5b35c3c-db99-478e-b5c6-35164fc9a7c9.sh: line 4: warning: command substitution: ignored null byte in input

So is line 4 this one?

  if [ "$(git status -z)" = "" ]

So we cannot evaluate $(git status -z) what should actually run the command git status -z and evaluate to the standard output of that command. So it seems that this git command is echoing null bytes causing this warning.
Maybe there is nothing we need to do about it but we could at least leave a comment once we understood what is happening here, if we thing this is intended.

@hohwille hohwille added the bug Something isn't working label Mar 7, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant