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

Dependency level macro definitions continuously trigger dependency state changes #1018

Open
zoziha opened this issue Apr 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zoziha
Copy link
Contributor

zoziha commented Apr 10, 2024

Description

When running the following command persistently, this behavior triggers a dependency state change due to the use of macro definitions for dependencies in the top-level item, without the dependency actually changing.

$ fpm run -C . /example_packages/preprocess_per_dependency
fpm: Entering directory 'C:\Users\zoziha\Code\opensource\fpm\example_packages\preprocess_per_dependency'
# Dependency change detected: utils
Project is up to date
 Dependency macro IS defined
STOP 0
fpm: Leaving directory 'C:\Users\zoziha\Code\opensource\fpm\example_packages\preprocess_per_dependency'

How should we handle this behavior?

Expected Behaviour

$ fpm run -C . /example_packages/preprocess_per_dependency
fpm: Entering directory 'C:\Users\zoziha\Code\opensource\fpm\example_packages\preprocess_per_dependency'
Project is up to date
 Dependency macro IS defined
STOP 0
fpm: Leaving directory 'C:\Users\zoziha\Code\opensource\fpm\example_packages\preprocess_per_dependency'

No # Dependency change detected: utils.

Version of fpm

latest commit

Platform and Architecture

All platform

Additional Information

  1. example_packages/preprocess_per_dependency/fpm.toml;
  2. src/fpm/dependency.f90;
  3. Dependency-level macro setting #952.
@zoziha zoziha added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant