Skip to content

just allow . on new subcommand instead of changing canonical path pro…#630

Merged
awvwgk merged 2 commits intofortran-lang:mainfrom
urbanjost:newdot
Jan 16, 2022
Merged

just allow . on new subcommand instead of changing canonical path pro…#630
awvwgk merged 2 commits intofortran-lang:mainfrom
urbanjost:newdot

Conversation

@urbanjost
Copy link
Copy Markdown
Contributor

The previous change to make canon_path(3f) technically more correct or like realpath(3c) exposed other uses of the routine not compatible with a real realpath(3c) behavior, so making simple change to special-case the "." pathname or a null pathname in the new subcommand so that

fpm new --backfill
fpm new . --backfill

work; as currently the --backfill option requires a pathname including at least the base directory name, which is non-intuitive.

or it cannot be used from within the actual project main directory.

@urbanjost
Copy link
Copy Markdown
Contributor Author

Note the change is made such that if the canonical name is subsequently returned by canon_path(3f) the code will still work, the change of "." to the current directory will just become redundant.

Copy link
Copy Markdown
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Copy Markdown
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! LGTM 👍

@awvwgk awvwgk merged commit 2ae0581 into fortran-lang:main Jan 16, 2022
@awvwgk awvwgk added this to the v0.6.0 milestone Apr 22, 2022
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.

3 participants