Skip to content

feat: implement minimal-version check in fpm.toml#1215

Open
Adityazzzzz wants to merge 1 commit intofortran-lang:mainfrom
Adityazzzzz:feat/minimal-version
Open

feat: implement minimal-version check in fpm.toml#1215
Adityazzzzz wants to merge 1 commit intofortran-lang:mainfrom
Adityazzzzz:feat/minimal-version

Conversation

@Adityazzzzz
Copy link

This PR implements the minimal-version field in the [package] table (Issue #1194).
Changes:

  • Schema: Updated package_config_t in src/fpm/manifest/package.f90 to accept minimal-version.
  • Logic: Added a check in src/fpm/manifest.f90. If the running fpm version is older than minimal-version, the build now halts with a clear error message.

Testing: Verified locally by setting minimal-version = "99.0.0" in a test project. The build correctly failed with the expected error message.

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.

1 participant