Skip to content

feat: Update Go modules and fix LDAP import path#25

Open
mshedsilegx wants to merge 21 commits intoMacmod:mainfrom
mshedsilegx:update-dependencies-and-fix-import
Open

feat: Update Go modules and fix LDAP import path#25
mshedsilegx wants to merge 21 commits intoMacmod:mainfrom
mshedsilegx:update-dependencies-and-fix-import

Conversation

@mshedsilegx
Copy link

@mshedsilegx mshedsilegx commented Aug 28, 2025

This commit updates several Go modules to their latest versions, including github.com/go-ldap/ldap (vulnerable), github.com/rivo/tview, and others.

It also fixes an incorrect import path in pkg/ldaputils/actions.go, changing github.com/go-ldap/ldap/gssapi to github.com/go-ldap/ldap/v3/gssapi.

These changes were followed by go mod tidy and a successful build of the project. It also addresses many issues detected by go vet, golangci-lint and govulncheck

google-labs-jules bot and others added 21 commits August 28, 2025 17:01
This commit updates several Go modules to their latest versions, including `github.com/go-ldap/ldap`, `github.com/rivo/tview`, and others.

It also fixes an incorrect import path in `pkg/ldaputils/actions.go`, changing `github.com/go-ldap/ldap/gssapi` to `github.com/go-ldap/ldap/v3/gssapi`.

These changes were followed by `go mod tidy` and a successful build of the project.
This commit addresses the findings from `go vet` after updating the Go modules.
The issues were related to unkeyed struct literals in `pkg/ldaputils/actions.go` and `tui/dnsmodify.go`.
The struct literals have been updated to use keyed fields, which improves code readability and maintainability.
This commit addresses the findings from `govulncheck` by updating the Go toolchain to `go1.24.4`.
This resolves the following vulnerabilities in the standard library:
- GO-2025-3750 in `syscall`
- GO-2025-3749 in `crypto/x509`
This commit addresses a number of issues reported by `golangci-lint`.
The changes include:
- Removing unused code.
- Replacing deprecated function calls.
- Handling unchecked errors.
- Fixing other minor linting issues.
…nused.

This commit addresses 35 linting issues across the codebase, improving code quality, readability, and adherence to Go best practices.

Fixes include:
- Handling unchecked error return values.
- Formatting error strings correctly.
- Refactoring `if-else` chains to `switch` statements.
- Removing redundant type declarations.
- Replacing `strings.Replace` with `strings.ReplaceAll`.
- Removing an unused variable.
Corrected all linting issues reported by errcheck, staticcheck, and u…
…nused.

This commit addresses 35 linting issues across the codebase, improving code quality, readability, and adherence to Go best practices.

Fixes include:
- Handling unchecked error return values.
- Formatting error strings correctly.
- Refactoring `if-else` chains to `switch` statements.
- Removing redundant type declarations.
- Replacing `strings.Replace` with `strings.ReplaceAll`.
- Removing an unused variable.
Corrected all linting issues reported by errcheck, staticcheck, and u…
This commit addresses all outstanding linting issues reported by errcheck, staticcheck, and unused.

These changes improve code quality, readability, and adherence to Go best practices.

Fixes include:
- Handling all unchecked error return values.
- Formatting error strings to be uncapitalized and without trailing punctuation.
- Refactoring `if-else` chains to `switch` statements for better readability.
- Removing redundant type declarations where the type can be inferred.
- Replacing `strings.Replace` with `strings.ReplaceAll`.
- Removing an unused variable.
This commit addresses all outstanding linting issues reported by errcheck, staticcheck, and unused.

These changes improve code quality, readability, and adherence to Go best practices.

Fixes include:
- Handling all unchecked error return values.
- Formatting error strings to be uncapitalized and without trailing punctuation.
- Refactoring `if-else` chains to `switch` statements for better readability.
- Removing redundant type declarations where the type can be inferred.
- Replacing `strings.Replace` with `strings.ReplaceAll`.
- Removing an unused variable.
This commit addresses all outstanding linting issues reported by errcheck, staticcheck, and unused.

These changes improve code quality, readability, and adherence to Go best practices.

Fixes include:
- Handling all unchecked error return values.
- Formatting error strings to be uncapitalized and without trailing punctuation.
- Refactoring `if-else` chains to `switch` statements for better readability.
- Removing redundant type declarations where the type can be inferred.
- Replacing `strings.Replace` with `strings.ReplaceAll`.
- Removing an unused variable.
This commit addresses all outstanding linting issues reported by errcheck, staticcheck, and unused.

These changes improve code quality, readability, and adherence to Go best practices.

Fixes include:
- Handling all unchecked error return values.
- Formatting error strings to be uncapitalized and without trailing punctuation.
- Refactoring `if-else` chains to `switch` statements for better readability.
- Removing redundant type declarations where the type can be inferred.
- Replacing `strings.Replace` with `strings.ReplaceAll`.
- Removing an unused variable.
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.

1 participant