summaryrefslogtreecommitdiff
path: root/internal/resource/link
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-05 10:52:38 +0300
committerPaul Buetow <paul@buetow.org>2026-07-05 10:52:38 +0300
commit6cf5e1bf6e8f1551cf215bf838c27ec8281cf045 (patch)
treeb27bc285c32d5fd9bf869c881c27a6fbc33fb7c0 /internal/resource/link
parent1b97ed3ca759a530585a520c8edd01e26bdee582 (diff)
not applying directly anymore, pending central applier algo
Diffstat (limited to 'internal/resource/link')
-rw-r--r--internal/resource/link/link.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/resource/link/link.go b/internal/resource/link/link.go
index 5f8e345..8600166 100644
--- a/internal/resource/link/link.go
+++ b/internal/resource/link/link.go
@@ -83,7 +83,8 @@ func (l *Link) resourceType() string {
// registering it. Used by other resource packages (e.g. dir) to recreate an
// individual symlink without it becoming its own top-level resource.
func Ensure(path string, opts ...opt.Option) error {
- return build(path, opts...).apply()
+ build(path, opts...)
+ return nil
}
func Have(path string, opts ...opt.Option) resource.Resource {
@@ -91,10 +92,6 @@ func Have(path string, opts ...opt.Option) resource.Resource {
l.resource = resource.Register(l.resourceType(), l.path,
resource.ApplierFunc(func() error { return l.apply() }))
- if err := l.apply(); err != nil {
- log.Fatalf("failed to apply link resource %s: %v", path, err)
- }
-
return l.resource
}