mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #386] [MERGED] When running on Windows the correct path separator must be used #1432
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#1432
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/386
Author: @taliesins
Created: 10/8/2020
Status: ✅ Merged
Merged: 10/9/2020
Merged by: @cplee
Base:
master← Head:fix-windows-path-problems📝 Commits (5)
5e4c6f1When running on Windows the correct path separator must be used. filePath.join is OS aware, so when we want to use forward slash use path.join instead.8af2e4bWhen calculating relative folders on Windows for destination path on Linux, we need to change \ for /ea76869Reduce complexity by extracting methodsa728146V1 does not point to a file that does not exist68f2296Looks like something else is the cause of this test breaking. Last successful build is #371, builds after that are failing📊 Changes
3 files changed (+35 additions, -17 deletions)
View changed files
📝
pkg/runner/run_context.go(+1 -1)📝
pkg/runner/runner_test.go(+1 -1)📝
pkg/runner/step_context.go(+33 -15)📄 Description
…Path.join is OS aware, so when we want to use forward slash use path.join instead.
on windows docker cp should end with . when copying a directory
when running npm modules we should pass in path with all forward slashes
This fixes #331
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.