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

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

Merged
merged 2 commits into from
Jan 16, 2022
Merged

Conversation

urbanjost
Copy link
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
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
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
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.

None yet

3 participants