-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
.gitignore should be ignored for actions #193
Comments
Looks like it was removed, ok to close this issue now? |
The get-cmake action has been fixed but in general checking the git-ignore for actions is not necessary and could cause problems like this again in the future |
Hey @alanb-sony - thanks for the PR! I need some help though understanding the scenario. Why wouldn't you want a .gitignore to be used within the action? I'm thinking of node_modules for example. This seems like a bug with the cmake action in which there was a bad gitignore that needed to be fixed. |
doesn't act checkout a clean git copy of each action then copy the action to docker? There shouldn't be any uncommitted files in the host copy as it is never used for anything other than copying to docker? |
It does...unless you are using a local action, stored in the same repo as your workflow with something like In that case, you would want any |
@alanb-sony - thoughts on comment above? still make sense to consider #198? |
I think some change is a good idea, don't know what though. I'm not a go expert (or even a novice) |
@cplee I think it would make sense to only respect |
This is also causing issues with |
I like @wagenet idea - only use |
Issue is stale and will be closed in 7 days unless there is new activity |
There seems to be a discrepancy between how Github runner behaves vs. an Act runner. I have a go project that is passing in Github and only passes in act if I delete the .gitignore. It leads me to believe that the Github runner is ignoring .gitignore and copying the files that |
Issue is stale and will be closed in 7 days unless there is new activity |
Still should remain open. |
Issue is stale and will be closed in 14 days unless there is new activity |
There is a PR but it isn’t yet merged. |
Issue is stale and will be closed in 14 days unless there is new activity |
I think we still need this. |
One of the use cases for using act to run workflows is to iterate and debug parts of them more quickly. If I want to fix a problem in the workflow, I don't necessarily need to do a fresh checkout of my codebase each time. Also, I can run workflows against uncommitted changes to decide whether or not I'm ready to commit. This allows me to move faster. Some flag to be able to ignore the .gitignore would be awesome. |
I'm having an issue because Having to change this each time that I run |
My two coins regarding solution that would be ideal for me. LT;DR: I would lean on The act tool is quite similar to packpack in the following aspect: both copy sources into a docker container and perform some work inside. Both assume that a developer's working tree may be not a clear copy, so just recursive copying is not the option. The packpack tool runs Another nice property is that I can use My experience with this approach is great. |
I'm trying to use the get-cmake action to download cmake. Strangely it has
dist
listed in its .gitignore sodist
doesn't get copied into the docker container and the action fails.The text was updated successfully, but these errors were encountered: