Skip to content

all: (mostly) automated clean up #1513

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

Merged
merged 2 commits into from
Sep 29, 2023
Merged

all: (mostly) automated clean up #1513

merged 2 commits into from
Sep 29, 2023

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Sep 28, 2023

  • Unset any user-defined Go environment variables devbox.json to make builds more reproducible. Clean up some of the build scripts.
  • Remove exp/slices and exp/maps now that they're in the Go 1.21 stdlib.
  • Run find . -name '*.go' -exec gofumpt -extra -w {} \+ to format Go files.
  • Upgrade dependencies that don't have any backwards incompatible changes.
  • Organize direct vs. indirect modules and run go mod tidy.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add gofumpt here script here. Then we can add CICD that runs it and errors out if there are any changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a devbox run fmt script that runs in the lint job right before golangci-lint. If CI is set, it prints any unformatted files and exits with an error. When CI isn't set, it silently formats the files.

@mikeland73
Copy link
Contributor

Tests fails just look like timeouts. Probably the dependency changes caused longer build times.

- Unset any user-defined Go environment variables `devbox.json` to make
  builds more reproducible. Clean up some of the build scripts.
- Remove `exp/slices` and `exp/maps` now that they're in the Go 1.21
  stdlib.
- Run `find . -name '*.go' -exec gofumpt -extra -w {} \+` to format Go
  files.
- Add a `devbox run fmt` script and run it in CI.
- Upgrade dependencies that don't have any backwards incompatible
  changes.
- Organize direct vs. indirect modules and run `go mod tidy`.
@gcurtis
Copy link
Collaborator Author

gcurtis commented Sep 29, 2023

Merging because the CI error was due to a GitHub API rate limit (presumably due to force-pushing debug commits).

@gcurtis gcurtis merged commit d87c614 into main Sep 29, 2023
@gcurtis gcurtis deleted the gcurtis/cleanup branch September 29, 2023 20:54
@sentry-io
Copy link

sentry-io bot commented Sep 30, 2023

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ **Generic Error: <redacted usererr.combined>: <redacted errors.fundamental> go.jetpack.io/devbox/internal/nix in init View Issue
  • ‼️ **syscall.Errno: <redacted *errors.withStack>: <redacted errors.withStack>: <redacted fs.PathError>: <redacted s... go.jetpack.io/devbox/internal/cuecfg in WriteFile View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants