Skip to content

Paket pack with --template fails trying to load the dependencies of templates who should be ignored instead - #3363

Merged
forki merged 7 commits into
fsprojects:masterfrom
enricosada:paket_pack_invalid_template_considered
Sep 18, 2018
Merged

Paket pack with --template fails trying to load the dependencies of templates who should be ignored instead#3363
forki merged 7 commits into
fsprojects:masterfrom
enricosada:paket_pack_invalid_template_considered

Conversation

@enricosada

Copy link
Copy Markdown
Collaborator

When specified the --template argument, the paket pack search also for project references (finding all the paket.template files in same directory of project files)

Doing so, paket try to load and validate the found paket.template files.
But these template files may be not needed (like when --template is specified), and some may fail to load (for example a files required doesnt exists, because was not built)

This PR refactor the code to parse the found paket.template files, and just load these when are needed (if are not needed, are not validated, just considered for metadata)

…ouldn't consider others template files.

in the regression test, the `paket pack` failed because tried to load `PaketBug2`template file, who
isnt ready (a file required doesn't exists)
otherwise some templates may be validated (failing if required files doesnt exists), when are not needed
@enricosada

enricosada commented Sep 17, 2018

Copy link
Copy Markdown
Collaborator Author

@forki @matthid ready to review and merge for a new release.

test failure are unrelated (master already fails, ref appveyor )

@enricosada
enricosada requested a review from forki September 17, 2018 15:39
@forki
forki merged commit 87c8849 into fsprojects:master Sep 18, 2018
@forki

forki commented Sep 18, 2018

Copy link
Copy Markdown
Member

thx

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.

2 participants