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 error: detected dubious ownership #63

Open
ggwpez opened this issue May 2, 2023 · 3 comments
Open

git error: detected dubious ownership #63

ggwpez opened this issue May 2, 2023 · 3 comments

Comments

@ggwpez
Copy link
Member

ggwpez commented May 2, 2023

On Polkadot commit 131fd38b998c861f766909727a600cac201d64d8 with srtool version

{
  "name": "srtool",
  "version": "0.10.0",
  "rustc": "1.69.0",
  "subwasm": "v0.19.1-n/a",
  "tera": "0.2.4",
  "toml": "0.2.4"
}

srtool build -p rococo-runtime --root --profile production on Ubuntu 22.04.2 LTS (user is in group Docker) produces:

    Finished production [optimized] target(s) in 5m 19s                                                                                                        
✨ Your Substrate WASM Runtime is ready! ✨                                                                                                                    
fatal: detected dubious ownership in repository at '/build'                                                                                                    
To add an exception for this directory, call:                                                                                                                  
                                                                                                                                                               
        git config --global --add safe.directory /build                                                                                                        
fatal: detected dubious ownership in repository at '/build'                                                                                                    
To add an exception for this directory, call:                                                                                                                  
                                                                                                                                                               
        git config --global --add safe.directory /build                                                                                                        
fatal: detected dubious ownership in repository at '/build'                                                                                                    
To add an exception for this directory, call:                                                                                                                  
                                                                                                                                                               
        git config --global --add safe.directory /build                                                                                                        
Summary generated with srtool v0.10.0 using the docker image paritytech/srtool:1.69.0

Build is still successful.

@chevdor
Copy link
Contributor

chevdor commented May 2, 2023

Thanks for the issue @ggwpez. This issue should not(™) happen and was fixed already.
I will check again if something changed and triggers this issue again.

Could you please add the output of srtool --version so I test like your system ? (it may be time to add an issue template for that :)).

I think nonetheless that the issue is inside the image.

@ggwpez
Copy link
Member Author

ggwpez commented May 2, 2023

$ srtool --version
srtool-cli 0.11.0

@wischli
Copy link

wischli commented Nov 23, 2023

We are experiencing the same issue using the latest image paritytech/srtool:1.73.0-0.12.0. Any update @chevdor?

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