diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-25 14:48:27 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-25 14:53:29 +0900 |
| commit | 1c3761bb53c95d75751f95e8f77d9d1e5928b968 (patch) | |
| tree | 180e272979b83f68e4c32b4f83cd242715a84a72 /container/initsymlink.go | |
| parent | ac7abbbe3fa2eea01defb670abc7dc1dc336cf21 (diff) | |
container: enter init path early
There is generally no use case where any setup is required before init, and requiring the explicit function call is error-prone and unnecessary. It also causes trouble with packages using a similar trick. This change moves argv0 check early and makes it an import side effect. The stub will be removed in v0.5.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initsymlink.go')
| -rw-r--r-- | container/initsymlink.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/container/initsymlink.go b/container/initsymlink.go index e72e5ef4..09e74ec2 100644 --- a/container/initsymlink.go +++ b/container/initsymlink.go @@ -1,15 +1,12 @@ package container import ( - "encoding/gob" "fmt" "path/filepath" "hakurei.app/check" ) -func init() { gob.Register(new(SymlinkOp)) } - // Link appends an [Op] that creates a symlink in the container filesystem. func (f *Ops) Link(target *check.Absolute, linkName string, dereference bool) *Ops { *f = append(*f, &SymlinkOp{target, linkName, dereference}) |
