pop-os / cosmic-files

WIP COSMIC file manager
GNU General Public License v3.0
66 stars 51 forks source link

Error: not within a suitable 'git' worktree! #250

Open gl-yziquel opened 4 weeks ago

gl-yziquel commented 4 weeks ago

Hi.

I get this error when trying to build cosmic-files with cargo build:

error: failed to run custom build command for `cosmic-files v0.1.0 (/home/mini-me/home/cellar/cosmic-files)`

Caused by:
  process didn't exit successfully: `/home/mini-me/home/cellar/cosmic-files/target/release/build/cosmic-files-084983508b6afa21/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=i18n
  cargo:rerun-if-env-changed=VERGEN_GIT_COMMIT_DATE
  cargo:rerun-if-env-changed=VERGEN_GIT_SHA

  --- stderr
  Error: not within a suitable 'git' worktree!

The meaning of this error is pretty unclear.

Moreover, it happens when trying to build redox from source.

jackpot51 commented 4 weeks ago

vergen is used to include information in the program about what git commit was used to build it. Are you building from a git clone'd repository or did you get the source code another way?

gl-yziquel commented 4 weeks ago

vergen is used to include information in the program about what git commit was used to build it. Are you building from a git clone'd repository or did you get the source code another way?

I performed a brutal redox build with the following instructions:

gix clone ttps://gitlab.redox-os.org/redox-os/redox
cd redox
git submodule update --init --recursive --force
./bootstrap.sh
time make all

cosmic-files appears as a dependency within that build, and fails with that error.

I build from git HEAD.

Jomosoto commented 3 days ago

I get the same error. I followed the instructions in the readme.

Edit: OS: Artix Linux