Skip to content

The fpm new command does not need to query the folder for the existence of fpm.toml #738

@zoziha

Description

@zoziha

Description

At present, the fpm new command will query whether fpm.toml exists in the folder. If it does not exist, it will query the parent folder until it reaches the top-level folder.
This is an unreasonable situation, fpm new demo will cause pwd_start /= pwd_working in main.f90 to display an extra line (the last line below) like:

>> fpm new demo
 + mkdir demo
 + cd demo
 + mkdir demo\src
 + mkdir demo\app
 + mkdir demo\test
 + git config --get user.name > C:\Users\zuozh\AppData\Local\Temp\367
 + git config --get user.email > C:\Users\zuozh\AppData\Local\Temp\372
 + git config --get user.name > C:\Users\zuozh\AppData\Local\Temp\373
 + git init hello_world
Initialized empty Git repository in D:/Code/demo/demo/.git/
fpm: Leaving directory 'D:'                 # This line

Expected Behaviour

fpm new command does not query fpm.toml location

Version of fpm

0.6.0

Platform and Architecture

All platforms

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions