mise run lint is failing, can you check why and make a PR to fix, and also: how did this…
- User
mise run lint is failing, can you check why and make a PR to fix, and also: how did this happen on main branch
Assistant
I'll start by reproducing the lint failure.
Assistant
These are undefined symbols in a test file. Let me find where they were defined and check git history.
Assistant
Now let me confirm which commit deleted the helpers and understand the merge sequence.
Assistant
Confirmed the root cause. Now let me understand the current auth API so I can write the correct fix. Let me look at how other tests now set up auth and what
runTrailListAllneeds.Assistant
activity_cmd_test.gois the working sibling. Let me read its setup to mirror it.Assistant
I have everything I need. The fix: rewrite the two broken trail tests to use the current
SetResolveContextForAPIForTest+tokenstorepattern (asactivity_cmd_test.goalready does). Let me verifydefaultTrailListOptionsgives a valid limit so test 1 reaches auth.Assistant
Now I'll create a branch and fix the two tests to use the current auth seam pattern.
Assistant
Now let me verify it compiles and the tests pass, then run lint.
Assistant
Lint passes. Let me commit and open the PR.
Assistant
Done. PR opened: https://github.com/entireio/cli/pull/1436
What was wrong
mise run lintfailed at thetypecheckstage because theclipackage's test binary doesn't compile.cmd/entire/cli/trail_cmd_test.goreferenced four auth test helpers that no longer exist:newAuthMemStorenewResolveTestManagerauth.SetManagerForTestauth.DiscoveryUnavailableForTest
- User
/exit exit