foundweekends / foundweekends/giter8

scaffold name property determines subdirectory

Open
#327 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Scala
Stars
1.8k
Forks
225
Avg merge
2h 35m
Merged PRs (30d)
8

Description

Maybe this is something I missed in the docs, but it seems to be surprising behavior: if I set a name property "name=" in scaffold's `default.properties`, the name determines the base directory for the scaffold. For instance, instead of 'src/main/scala...', I get '$name/src/main/scala', without having defined my scaffold's directory structure to include name as a prefix. I grepped the code quickly and found this line, https://github.com/foundweekends/giter8/blob/master/library/src/main/scala/g8.scala?utf8=%E2%9C%93#L271

It was surprising to me since I wouldn't expect a scaffold to be able to modify the folder structure outside of the structure in it's definition. Also, the "name" key seems to be overloaded. I would expect the output directory to either always be the root of the project where it's used, or controllable by a separate key such as "baseDirectory".

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.