Skip to content

Conversation

@urbanjost
Copy link
Contributor

@urbanjost urbanjost commented Aug 8, 2021

closes #535 by exiting the routine to create a default fpm.toml manifest if fpm.toml exists

A backfill should not fail with an error, but should just create a more complete fpm package, possibly producing messages along the way depending on what actions are taken.

If a backfill that would have created a plain basic fpm.toml file is invoked and the fpm.toml file already exists, the command stops
and therefore does not complete the remaining steps (which is basically currently just a "git init"), so if the package does not already have git initialized it remains so, which is unintended. This change produces an message instead of a failure, allowing the new subcommand to continue and to complete the remaining intended actions when the above scenario occurs.

Copy link
Member

@LKedward LKedward left a comment

Choose a reason for hiding this comment

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

Thanks for reporting and fixing this! Changes look good to me 👍

@LKedward LKedward merged commit fed8635 into fortran-lang:master Aug 19, 2021
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.

git init not called when backfilling a package if fpm.toml file exists

3 participants