summaryrefslogtreecommitdiff
path: root/internal/resource/link/link.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-05 11:25:57 +0300
committerPaul Buetow <paul@buetow.org>2026-07-05 11:25:57 +0300
commit4c5b95d5e3811025e2148a6f2a059738e79ca2c9 (patch)
treee0aaaef14e1ed6fc0d78c460b671289e39e94c73 /internal/resource/link/link.go
parent5256a4d1e5a56510758bfac710ba2ad2a45af66e (diff)
add tests for repository's Apply
Diffstat (limited to 'internal/resource/link/link.go')
-rw-r--r--internal/resource/link/link.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/resource/link/link.go b/internal/resource/link/link.go
index 8600166..0e5582c 100644
--- a/internal/resource/link/link.go
+++ b/internal/resource/link/link.go
@@ -83,8 +83,7 @@ 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 {
- build(path, opts...)
- return nil
+ return build(path, opts...).apply()
}
func Have(path string, opts ...opt.Option) resource.Resource {