Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remove mechs in db #120

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Conversation

Arequ
Copy link
Contributor

@Arequ Arequ commented Feb 26, 2024

Installed the newly built pkg and the postinstall failed on the checkin --install command

Added a break in the inner loop when mech is found to prevent additional iteration that results in an index out of range error. This fixed my issue and enabled the go bin to run. Enabling me to uninstall the python/go packages over and over without an issue.

After the initial fix and numerous restarts, I unfortunately am unable to get the device back into a state where the issue re-occurs. I was able to add the AuthDB{Mechanisms:[]} values to the test matrix that were causing failures in my initial debugging though.

Before adding the break:
Screenshot 2024-02-26 at 17 04 52

After adding the break:
Screenshot 2024-02-26 at 17 05 08

…to decrement avoiding "panic: runtime error: index out of range"
- Added real world data for scenario that caused failures originally.
@grahamgilbert grahamgilbert merged commit dcc2ea5 into grahamgilbert:master Apr 24, 2024
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.

2 participants