mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[PR #1732] [MERGED] fix: environment handling windows (host mode) #2100
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#2100
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/1732
Author: @ChristopherHX
Created: 4/16/2023
Status: ✅ Merged
Merged: 4/18/2023
Merged by: @mergify[bot]
Base:
master← Head:fix-env-handling-windows-host-mode📝 Commits (10+)
43c6baefix: environment handling windows (host mode)c08607afixupb3337d0fixupeb0e5adadd more tests7c16adefixup6af0356fix setenvfb99651fixes4b94919[skip ci] Apply suggestions from code review699a768Update side effects1a8244aMerge branch 'master' into fix-env-handling-windows-host-mode📊 Changes
12 files changed (+107 additions, -17 deletions)
View changed files
📝
pkg/container/executions_environment.go(+2 -0)📝
pkg/container/host_environment.go(+4 -0)📝
pkg/container/linux_container_environment_extensions.go(+4 -0)📝
pkg/runner/action.go(+2 -2)📝
pkg/runner/action_composite.go(+8 -6)📝
pkg/runner/command.go(+9 -3)📝
pkg/runner/run_context.go(+9 -0)📝
pkg/runner/step.go(+33 -5)📝
pkg/runner/step_test.go(+3 -1)➕
pkg/runner/testdata/windows-add-env/action.yml(+7 -0)📝
pkg/runner/testdata/windows-add-env/push.yml(+17 -0)📝
pkg/runner/testdata/windows-prepend-path/push.yml(+9 -0)📄 Description
Why?
Currently we merge env variables with case sensitive key, this is problematic on windows where PATH and Path are the same key.
Other Changes considered:
Create a custom env type
However this would require a lot of changes across the codebase.
Next steps:
envexpressions context case sensitive again for non windows, because the env keys can be duplucated in the map🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.