From 8dd3e1ee5d10c150f58e3b49771d3ca847f6d4cf Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 16 Aug 2025 02:06:41 +0900 Subject: hst/fs: rename method Target to Path This allows adapter structs to use the same field names as Op structs. Signed-off-by: Ophestra --- cmd/hpkg/with.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/hpkg/with.go') diff --git a/cmd/hpkg/with.go b/cmd/hpkg/with.go index 305edf7e..c6f3f22b 100644 --- a/cmd/hpkg/with.go +++ b/cmd/hpkg/with.go @@ -49,7 +49,7 @@ func withNixDaemon( SeccompFlags: seccomp.AllowMultiarch, Tty: dropShell, Filesystem: []hst.FilesystemConfigJSON{ - {FilesystemConfig: &hst.FSBind{Src: pathSet.nixPath, Dst: pathNix, Write: true}}, + {FilesystemConfig: &hst.FSBind{Source: pathSet.nixPath, Target: pathNix, Write: true}}, }, Link: []hst.LinkConfig{ {pathCurrentSystem, app.CurrentSystem.String()}, @@ -89,8 +89,8 @@ func withCacheDir( SeccompFlags: seccomp.AllowMultiarch, Tty: dropShell, Filesystem: []hst.FilesystemConfigJSON{ - {FilesystemConfig: &hst.FSBind{Src: workDir.Append("nix"), Dst: pathNix}}, - {FilesystemConfig: &hst.FSBind{Src: workDir, Dst: hst.AbsTmp.Append("bundle")}}, + {FilesystemConfig: &hst.FSBind{Source: workDir.Append("nix"), Target: pathNix}}, + {FilesystemConfig: &hst.FSBind{Source: workDir, Target: hst.AbsTmp.Append("bundle")}}, }, Link: []hst.LinkConfig{ {pathCurrentSystem, app.CurrentSystem.String()}, -- cgit v1.3.1