mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1022] Issue: parse all container/services options #597
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#597
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?
Originally created by @catthehacker on GitHub (Mar 1, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1022
@bhaveshprajapat commented on GitHub (Oct 3, 2022):
bump
@KnisterPeter commented on GitHub (Oct 3, 2022):
@bhaveshprajapat Feel free to create a pull request 😉
@KnisterPeter commented on GitHub (Oct 7, 2022):
@cplee @alex-savchuk This change contains a major issue. The workflow below does not return the hostname of the host but some other invalid fqdn.
I'm not sure why this happens, but it is a side-effect of this PR. Reverting it does restore the previous behavior.
@KnisterPeter commented on GitHub (Oct 7, 2022):
According to the docs, if no container is set, the job should run on the host.
This was imitated with act until this fix was applied.
We should restore the default behavior unless there is a
containerdefinition on a job.@alex-savchuk commented on GitHub (Oct 7, 2022):
Checking it.
@alex-savchuk commented on GitHub (Oct 7, 2022):
@KnisterPeter
Could you please provide output for previous output of
hostname -fand new one?I checked and see "docker-desktop" for both cases :(
@KnisterPeter commented on GitHub (Oct 10, 2022):
The 'previous' output was the output of the host machine as act was used to start the docker container in network mode
host. Now with your fix it is started with the default network mode.As you are parsing an empty string into docker options (using the cli tool) the output are all the docker defaults. Then you merge that into (and over) the act defaults.
I've already build a fix for this: https://github.com/nektos/act/pull/1375
Please test if your change did not break with that. 😃