Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

enricosada
Copy link
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
Copy link
Collaborator Author

enricosada commented Sep 17, 2018

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

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

@forki forki merged commit 87c8849 into fsprojects:master Sep 18, 2018
@forki
Copy link
Member

forki commented Sep 18, 2018

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.

None yet

2 participants