Skip to content

templating: add resolvePath function for absolute path resolution#2737

Open
SergioChan wants to merge 1 commit intogo-task:mainfrom
SergioChan:fix-2681-resolvepath
Open

templating: add resolvePath function for absolute path resolution#2737
SergioChan wants to merge 1 commit intogo-task:mainfrom
SergioChan:fix-2681-resolvepath

Conversation

@SergioChan
Copy link

Summary

  • add a new resolvePath template function to resolve relative segments into an absolute path
  • make resolvePath resolve symlinks when available, with a safe fallback to the absolute path when symlink resolution is not possible
  • add focused unit tests for path normalization and symlink resolution behavior

Testing

  • Not run in this environment: go test ./internal/templater
  • Reason: the repository requires Go 1.25 toolchain and this runtime cannot download/provision that toolchain (toolchain not available)

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a resolvePath or absPath function

1 participant