parsing of newline in paket.template give unexpected results
Possible bug
I don't know if this is a bug or a feature, but if it is a feature I kind of need to know the purpose of it because I can't see it. I looked in the documentation for any clues, but didn't find anything.
The initial folder-structure was like this:
├── tools
│ └── Chocolate-scripts
└── lib
└── bin
Followed by the paket.template:
type file
id unique id
title Package title
authors Self
owners Self
summary A package
copyright Copyright © 2017
description A nice description
files
// A list of all the files, 20-25 files
../../path/to/the/dlls/util.dll ==> lib/bin
// config
../../path/to/config/web.config.default ==> lib
../../path/to/config/log4net.config ==> lib
// install scripts
tools ==> tools
../../paket.lock ==> meta
So the strange thing happend when we built the package. Due to the newline above the config it copies itself(paket.template) and the tools-folder inside the lib-folder. This causes the further build to fail since tools-scripts are trying to reach lib/lib. ├── tools │ └── Chocolate-scripts └── lib ├── tools │ └── Dublicates of the scripts ├── paket.template └── bin
Got this today as well. It seems a newline between the file listing couses the folder the template-file is in to package itself...