containerd/runtime
Sebastiaan van Stijn b8cadf7539
runtime/v2/shim: strip path information from version output
I noticed that path information showed up in the version output:

    ./bin/containerd-shim-runc-v1 -v
    ./bin/containerd-shim-runc-v1:
    Version:  v1.6.0-rc.1
    Revision: ad771115b82a70cfd8018d72ae489c707e63de16.m
    Go version: go1.17.2

POSIX guidelines describes; https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html#g_t_002d_002dversion

> The program’s name should be a constant string; don’t compute it from argv[0].
> The idea is to state the standard or canonical name for the program, not its
> file name.

Unfortunately, this code is used by multiple binaries, so we can't fully remove
the use of os.Args[0], but let's make a start and just remove the path info.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-01-31 21:01:01 +01:00
..
linux/runctypes Update gogo/protobuf to v1.3.2 2021-01-28 12:57:50 +00:00
opts Update cgroups to v1.0.2 2021-10-08 17:48:33 -07:00
restart feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
v1 feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
v2 runtime/v2/shim: strip path information from version output 2022-01-31 21:01:01 +01:00
events.go Licence header added 2018-02-19 10:32:26 +09:00
monitor.go Add runtime label to metrics 2021-07-23 10:04:46 -07:00
runtime.go Support custom runtime path when launching tasks 2021-11-09 13:31:46 -08:00
task_list.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
task.go Cleanup v2 shim 2021-08-04 10:38:05 -07:00
typeurl.go Licence header added 2018-02-19 10:32:26 +09:00