Skip to content

do not evaluate all templates with --template switch - #2769

Merged
forki merged 2 commits into
fsprojects:masterfrom
lexarchik:i2765
Sep 18, 2017
Merged

forki merged 2 commits into
fsprojects:masterfrom
lexarchik:i2765

Conversation

@lexarchik

Copy link
Copy Markdown
Contributor

try to fix #2765

allTemplateFiles.Remove(templateFile'.FileName) |> ignore

let merged = merge buildConfig buildPlatform version specificVersions projectFile templateFile'
let merged = lazy (merge buildConfig buildPlatform version specificVersions projectFile templateFile')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea of this fix is here - make "dangerous" operation lazy.
So exception only occur if project will actually be needed for packing.

Comment thread .gitignore
[Oo]bj/

# Enable scenarios in integration tests
!integrationtests/scenarios/*/before/**

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a good thing!?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as i understand, idea is - all files in "test-scenario/before" folder is "setup" for test.
I think it's slightly easier to remove .idea, .dotsettings etc from commit than add ignored dlls/pdbs.

@forki

forki commented Sep 18, 2017

Copy link
Copy Markdown
Member

Thanks for taking care of this!

@forki forki closed this Sep 18, 2017
@forki forki reopened this Sep 18, 2017
@forki
forki merged commit aa7d3a1 into fsprojects:master Sep 18, 2017
@lexarchik
lexarchik deleted the i2765 branch September 18, 2017 09:38
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.

Paket pack seems to evaluate all templates it finds even when using the --template switch

2 participants