BrettMayson / HEMTT

Build System for Arma 3
https://brettmayson.github.io/HEMTT
GNU General Public License v2.0
109 stars 40 forks source link

HEMTT binary used as configuration file if same name #267

Closed jonpas closed 4 years ago

jonpas commented 4 years ago

HEMTT Version: 0.7.4 (stable) Project: Any

Description:

Having a Linux HEMTT binary hemtt in project root next to configuration file hemtt.toml causes HEMTT to find itself and fail instead of finding the proper file with the extension.

Steps to reproduce:

Additional information:

N/A

HEMTT Output:

$ ls
addons hemtt* hemtt.toml ...
$ hemtt build
configuration file "/home/jonpas/Data/Work/Arma 3/Mods/TheseusServices/hemtt" is not of a registered file format
BrettMayson commented 4 years ago

This is actually going to not be an elegant fix, it may just be "Don't name it hemtt and put it in your project folder.

jonpas commented 4 years ago

It's named hemtt when you download it and documentation says to put it in the project folder. That would literally put it upside down to how it always worked.

Why is it searching for hemtt instead of hemtt.toml?

BrettMayson commented 4 years ago

Yeah, I'm aware and it's really not ideal. The config library just looks for hemtt*, one way to fix this would be to remove JSON and only look for toml files from now on.

jonpas commented 4 years ago

No way to look for both separately? Like find toml, if not found, find json.