Commit c3f87ca
Fix check command detecting versions in wrong directory
The check command was resolving config paths incorrectly when no -c flag
was provided. With an empty checkConfigFile, ResolveAbsPath("") would
resolve to the current directory as an absolute path, and GetConfigDir()
would then extract its parent directory instead of the config directory.
This caused version detection to happen in a different directory than
when -c stacktodate.yml was explicitly specified, resulting in different
outcomes for the same check.
Fix: Set checkConfigFile to the default "stacktodate.yml" before any
path resolution, ensuring consistent behavior regardless of whether the
-c flag is provided.
🤖 Generated with Claude Code
Co-Authored-By: Claude Haiku 4.5 <[email protected]>1 parent ec04960 commit c3f87ca
3 files changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
0 commit comments