Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,13 @@ impl Config {
.get_or_try_init(|| Self::analyze_imports(&path))?
.clone();

imports.into_iter().collect()
// Always include the main config file. The pklr backend's
// analyze_imports does not include the source file in its
// output, so without this edits to hk.pkl wouldn't invalidate
// the cache when HK_PKL_BACKEND=pklr.
let mut files: Vec<PathBuf> = imports.into_iter().collect();
files.push(path.clone());
files
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated
} else {
vec![path.clone()]
};
Expand Down
Loading