diff options
Diffstat (limited to 'internal/resource/link/link.go')
| -rw-r--r-- | internal/resource/link/link.go | 7 |
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 } |
