Handle a manifest change (fpm.toml) by rebuilding the watch list.
This also notifies feature plugins via on_manifest_changed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(watcher_t), | intent(inout) | :: | self |
subroutine handle_manifest_change(self) class(watcher_t), intent(inout) :: self integer(int64) :: man_now man_now = manifest_key_from_files(self%cfg%settings, self%files) if (man_now /= self%man_prev) then call self%fm%on_manifest_changed_all(self%man_prev, man_now) self%man_prev = man_now end if call log_info(self%cfg%w, "manifest changed -> rebuilding watch list") call rebuild_watch_list(self, print_header=.false.) end subroutine handle_manifest_change