Skip to content

feat: Add Tera function absolute#6729

Merged
jdx merged 2 commits intojdx:mainfrom
iamkroot:tera-absolute
Oct 23, 2025
Merged

feat: Add Tera function absolute#6729
jdx merged 2 commits intojdx:mainfrom
iamkroot:tera-absolute

Conversation

@iamkroot
Copy link
Copy Markdown
Contributor

Closes #6710

Copilot AI review requested due to automatic review settings October 23, 2025 00:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new absolute Tera filter that converts paths to their absolute form without requiring the path to exist on the filesystem, addressing issue #6710. This complements the existing canonicalize filter which requires paths to exist.

Key changes:

  • Implements the absolute filter using the path_absolutize crate
  • Adds comprehensive test coverage for both absolute and relative path inputs
  • Documents the new filter in the templates documentation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/tera.rs Implements the absolute filter and adds unit tests for absolute and relative path handling
docs/templates.md Documents the new absolute filter with usage description

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread docs/templates.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jdx jdx merged commit 5e9b718 into jdx:main Oct 23, 2025
25 checks passed
@iamkroot iamkroot deleted the tera-absolute branch October 23, 2025 16:22
jdx pushed a commit that referenced this pull request Oct 23, 2025
### 🚀 Features

- **(tasks)** modify usage spec parsing to return dummy strings by
@iamkroot in [#6723](#6723)
- include resolved sources in task templating context by
@the-wondersmith in [#6180](#6180)
- Add Tera function `absolute` by @iamkroot in
[#6729](#6729)

### 🐛 Bug Fixes

- **(cli)** respect os filter during upgrade by @iamkroot in
[#6724](#6724)

### 📚 Documentation

- fix RUNTIME.osType values in example snippet by @ofalvai in
[#6732](#6732)
- migrate issue links to GitHub discussions by @jdx in
[#6740](#6740)
- document Lua version by @ofalvai in
[#6741](#6741)

### New Contributors

- @ofalvai made their first contribution in
[#6741](#6741)
- @iamkroot made their first contribution in
[#6729](#6729)
- @the-wondersmith made their first contribution in
[#6180](#6180)

## 📦 Aqua Registry Updates

#### New Packages (8)

- [`SUPERCILEX/fuc/cpz`](https://github.com/SUPERCILEX/fuc/cpz)
- [`SUPERCILEX/fuc/rmz`](https://github.com/SUPERCILEX/fuc/rmz)
- [`dinoDanic/diny`](https://github.com/dinoDanic/diny)
- [`eth-p/bat-extras`](https://github.com/eth-p/bat-extras)
- [`k1LoW/tailor-log`](https://github.com/k1LoW/tailor-log)
- [`mashiike/acrun`](https://github.com/mashiike/acrun)
- [`opengrep/opengrep`](https://github.com/opengrep/opengrep)
-
[`praetorian-inc/noseyparker`](https://github.com/praetorian-inc/noseyparker)

#### Updated Packages (2)

- [`bufbuild/buf`](https://github.com/bufbuild/buf)
-
[`bytecodealliance/wasm-tools`](https://github.com/bytecodealliance/wasm-tools)
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.

3 participants