mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #180] [CLOSED] Windows+Docker path reference fixes, mostly around the not relying on filepath.Separator #1376
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#1376
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/180
Author: @syntaqx
Created: 4/1/2020
Status: ❌ Closed
Base:
master← Head:explicit-path-separators📝 Commits (2)
85ffe28use filepath when talking about the local fs, path for docker linux3dd75b5just an obnoxious amount of path normalization📊 Changes
5 files changed (+32 additions, -25 deletions)
View changed files
📝
Makefile(+5 -2)📝
pkg/common/file.go(+3 -6)📝
pkg/container/docker_run.go(+12 -9)📝
pkg/runner/run_context.go(+4 -3)📝
pkg/runner/step_context.go(+8 -5)📄 Description
Updates path concatenation/usage to leverage
filepath.Separator(often throughfilepath.Join) when referencing the host OS, but explicitly using/(often throughpath.Join) when referencing paths in docker containers/mounts.Update: In addition to the above, there is also a healthy amount of path normalization so that Windows paths can be compared to their Docker counterparts. This should still be cross-os friendly as well.
In theory, this should work bi-directional including when using Windows containers, as Windows is very lax with this, but I don't really have the time to test it.
Addresses #145 and possibly a chain of others related to it.
Please let me know if I need to update anything to meet contribution guidelines I didn't follow, or changes you'd like before merging.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.