mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #163] [MERGED] Improved gitignore handling #1375
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1375
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/163
Author: @aidansteele
Created: 3/18/2020
Status: ✅ Merged
Merged: 3/18/2020
Merged by: @cplee
Base:
master← Head:master📝 Commits (1)
50471b5Improved gitignore handling📊 Changes
2 files changed (+16 additions, -7 deletions)
View changed files
📝
go.mod(+1 -1)📝
pkg/container/docker_run.go(+15 -6)📄 Description
I noticed that the tar file created and copied to the build container by
actwas taking a long time. I took a look and it was much bigger than I expected - it was including a whole lot of node_modules that should have been excluded.It appeared that my gitignore config wasn't being respected - I have
.gitignorefiles that aren't at the root of the repo. I switched to a different library, which happened to already be part ofact. This reduced the size of the tar by a few hundred MB and sped up operations a fair bit.I'd be happy to add a test for this, but that would be easier if I factored out the actual copy-to-container functionality into a different method. If you'd like that, let me know and I'll submit a second PR.
github.com/nektos/act@4a4bd36cf6/pkg/container/docker_run.go (L392-L395)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.