SuperCuber / dotter

A dotfile manager and templater written in rust 🦀
The Unlicense
901 stars 48 forks source link

[BUG] Tests fail because file doesn't exist #144

Closed Cornelius-Figgle closed 1 year ago

Cornelius-Figgle commented 1 year ago

Environment

Description

src/handlebars_helpers.rs:401 is trying to test that the templating engine will say this file isn't executable, but it's dying because the file doesn't exist

Reproduction

template

./xbps-src -Q pkg dotter

Expected behavior

It should be creating the file instead

Actual behavior

output from export RUST_BACKTRACE=full

SuperCuber commented 1 year ago

This is because on unix dotter uses which 's exit code to check whether a command is executable. I guess in your environment which doesn't exist. Is there a different way that doesn't depend on it?

Cornelius-Figgle commented 1 year ago

I guess in your environment which doesn't exist.

That appeared to be the issue, adding which to the checkdepends seemed to fix the issue