Skip to content

fpm update does not resolve changes in the package name #799

@perazz

Description

@perazz

Description

If I change the package name in fpm.toml, for example from

name = "package_name"
version = "0.1.0"

to

name = "package_name2"
version = "0.1.0"

some commands stop working. For example:

federico@Federicos-MBP collision_test % fpm update 
<ERROR>Dependency name 'package_name2' found, but expected 'package_name' instead
STOP 1

Running fpm clean before updating also does not help:

federico@Federicos-MBP collision_test % ./fpm clean
Delete build, excluding dependencies (y/n)? y
 + rm -rf build/gfortran_2A42023B310FA28D
federico@Federicos-MBP collision_test % ./fpm update
<ERROR>Dependency name 'package_name2' found, but expected 'package_name' instead
STOP 1

Possible Solution

Treat the "package name" dependency in the same way that the package version number does, printing some additional output

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions