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

Update the docs about submodules and action ordering. #92

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KubaO
Copy link

@KubaO KubaO commented Aug 21, 2021

Fixes #91

Copy link

@rud rud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good plan to document this

Comment on lines +35 to +36
# This action has to precede ssh-agent, since it undoes its effects
- uses: actions/checkout@v2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe that is fixed in actions/checkout#833, unless submodules are used?

Comment on lines +110 to +112
The `ssh-agent` step *cannot* precede the `checkout` step, though. The `checkout` action undoes the effects of `ssh-agent`. This will cause errors like:

ssh: Could not resolve hostname key-<hex-key-id>.github.com: Name or service not known
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once actions/checkout#833 is merged, that should not happen unless submodules are turned on?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is linked to #148 which is caused by the checkout action setting up a temp HOME directory which breaks the ssh configuration.
On linux, submodule support is OK with ssh-agent preceding the checkout action.

@mpdude
Copy link
Member

mpdude commented Oct 19, 2022

I prefer not to merge this unless I fully understand the problem and we have discussed possible alternative (?) solutions. I have opened actions/checkout#973 to co-ordinate with the actions/checkout folks.

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.

Very silly question: how is it supposed to be used?
4 participants