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

Disable safe.directory git checks in the container image #22188

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WojciechMazur
Copy link
Contributor

@WojciechMazur WojciechMazur commented Dec 10, 2024

git config --system --add safe.directory $PWD is required in our setup when using containers in the CI. However, setting it once per job is not enough - it is not persisted between steps.

It coused problems during 3.6.3-RC1 release - https://github.com/scala/scala3/actions/runs/12253895253/job/34194840440#step:15:25

It also leads to swallowed exceptions when republishing SDK https://github.com/scala/scala3/actions/runs/12253895253/job/34194840440#step:15:25

It is also a blocker for tests in LTS fork, in safe directory should be set to $PWD in every fork - https://github.com/scala/scala3-lts/pull/23/files

We can disabled the safe.directory checks globally in the published docker image.
Tested in a fork repository: https://github.com/WojciechMazur/dotty/pull/2/checks

Before merging requires:

  • - Publishing new version of lampepfl:dotty container image
  • - Updating CI in this branch to use updated container image

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

Successfully merging this pull request may close these issues.

2 participants