Open erikmd opened 1 year ago
FTR I noticed in https://tracker.debian.org/pkg/git that
I'm busy upto tomorrow Friday but I'll push a new release of docker-coq-action by the end of the week to ensure no manual workaround is needed anymore.
Cc @JasonGross @mattam82 @proux01 FYI
Instead of running chown, it might be better to run
sudo chmod -R a=u .
git config --global --add safe.directory "*"
because chown might mess up future non-docker steps (I think chown gave me some issues with uploading artifacts?). Even better would be if the docker images could be configured to have a user (the default user?) have the same user and group ids as used on GitHub
Even better would be if the docker images could be configured to have a user (the default user?) have the same user and group ids as used on GitHub.
I believe this is the other way around:
coq
account in coqorg/coq
images' filesystem is 1000:1000, which looks standard w.r.t. the ID of the main user in GNU/Linux distros.@JasonGross
Instead of running chown, it might be better to run
sudo chmod -R a=u .
git config --global --add safe.directory "*"
Why not. This needs to be discussed. The git config
won't be enough anyway, because as mentioned in our current README, compiling the projects with custom_script: … make …
won't work given the permissions forbid writing in the current folder.
because chown might mess up future non-docker steps
Yes but I only see one possible such case, and I was precisely planning to cope with this issue by running:
- name: Revert permissions
# to avoid a warning at cleanup time
if: ${{ always() }}
run: sudo chown -R 1001:116 . # <--
automatically with a post-entrypoint
.
Yes but I only see one possible such case, and I was precisely planning to cope with this issue by running:
- name: Revert permissions # to avoid a warning at cleanup time if: ${{ always() }} run: sudo chown -R 1001:116 . # <--
automatically with a
post-entrypoint
.
This seems good to me
Originally posted by @yforster in https://github.com/coq-community/docker-coq-action/issues/85#issuecomment-1480816451
See also https://github.com/coq-community/docker-coq-action/pull/85#issuecomment-1481139961
(as well as https://github.com/actions/checkout/issues/766)