act_runner/cmd
Kristofer f2e65e1d40
fix: Rootless error concerning `/var/run/docker.sock` (#2181)
* Use same socket defaulting strategy every time

* Always default to DOCKER_HOST

* Add more debug logs

* Commenting, and massively simplified socket logic

* Rever to upstream run_context.go

* Fix EACCESS error regarding /opt/hostedtoolcache

* Revert "Fix EACCESS error regarding /opt/hostedtoolcache"

This reverts commit b2a8394d3358e1b5aab9dabe555d4a3f2bf0b2f9.

* Revert CLI debug logs

* Move socket and host handling to own function, and simplify logic

* Move to container package

* Make return be a struct

* Write tests to verify functionality

* Fix DOCKER_HOST being set to the string "DOCKER_HOST"

* Always use struct

* Use socketLocation, for DOCKER_HOST and more defaults

* Fixup arguments to GetSocketAndHost in test and root.go

* Un-struct hasDockerHost

* Fixup logic and set hasDockerHost

* Minor scoping & variable name change

* Move functionality to a new file

* Rename corresponding test

* Reviewfix

* Fix DOCKER_HOST expected

* Fix test assertions and add comments

* Swap comparison actual, expected

* Fixed no-DOCKER_HOST env test

* Fixed default socket test

* Add test to verify review comments

* Add more test for greater test coverage

* Consistent comment references

* Fix bug found while writing tests

* Passing tests

* NoMountNoHost testfix

* Rename test appropriately

* NoMount testfix

* Fixed OnlySocket

* Swap expected <-> actual in tests

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-02-06 17:18:11 +00:00
..
dir.go Support cache (#1770) 2023-04-28 15:57:40 +00:00
graph.go Add `super-linter` + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
input.go feat: support offline mode (#2128) 2024-01-20 00:20:15 +00:00
list.go feat: improve list (#786) 2021-08-30 15:38:03 +00:00
notices.go Support cache (#1770) 2023-04-28 15:57:40 +00:00
platforms.go Support array expressions in runs-on (#2088) 2023-11-12 17:40:06 +00:00
root.go fix: Rootless error concerning `/var/run/docker.sock` (#2181) 2024-02-06 17:18:11 +00:00
secrets.go fix: print line after password prompt (#1014) 2022-02-25 16:47:49 +00:00