Skip to content

chore: bump build system versions#45

Merged
mdelapenya merged 10 commits intotestcontainers:mainfrom
mdelapenya:bump-go-version
Nov 7, 2022
Merged

chore: bump build system versions#45
mdelapenya merged 10 commits intotestcontainers:mainfrom
mdelapenya:bump-go-version

Conversation

@mdelapenya
Copy link
Member

@mdelapenya mdelapenya commented Nov 4, 2022

What does this PR do?

  • bumps Go to 1.18, using it in the GH action to run the tests
  • bumps golang.org/x/sys dependency, as it was using an outdated one, which made it impossible to run the tests
  • resolves the duplication of logrus dependency: sirupsen (lowercase) Vs Sirupsen
  • runs the tests in the GH action
  • adds a make goal for running checks (format, vet, test): make verify

Why is it important?

Go 1.17 reached EOL on Aug 2th, 2022 (see https://endoflife.date/go) for that reason we are bumping it to 1.18.

In order to get gamiliar with the codebase, I tried to run the tests, finding issues with outdated dependencies: sys and sirupsen (both indirect). After fixing them, I noticed the GH action was not running the tests, that's why I added a step in the workflow to verify the project.

Follows-up

The existing make lint is not valid anymore. I'm planning to use golangci-lint as part of pre-commit

@mdelapenya mdelapenya added the enhancement New feature or request label Nov 4, 2022
@mdelapenya mdelapenya self-assigned this Nov 4, 2022
@mdelapenya mdelapenya requested review from bsideup and kiview November 4, 2022 17:43
Copy link
Contributor

@HofmeisterAn HofmeisterAn left a comment

Choose a reason for hiding this comment

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

The docker/setup-*@v1 actions are outdated in build-docker-image.yml. docker/setup-buildx-action@v1 shows following warning:

##[warning]The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
##[warning]The save-state command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

May not relate to this PR, but should we update them to v2?

@mdelapenya
Copy link
Member Author

May not relate to this PR, but should we update them to v2?

Indeed. I'll add them to this PR as a general bump of versions. I can rename the PR

@mdelapenya mdelapenya changed the title chore: bump Go version to 1.18 chore: bump build system versions Nov 4, 2022
@mdelapenya mdelapenya merged commit bd8a21f into testcontainers:main Nov 7, 2022
This was referenced Nov 7, 2022
mdelapenya added a commit to gesellix/moby-ryuk that referenced this pull request Dec 1, 2022
* main:
  feat: add golangci-lint (testcontainers#48)
  chore: add unit tests for Prune function (testcontainers#46)
  chore(ci): only push Docker image on tags (testcontainers#47)
  chore: bump build system versions (testcontainers#45)
  chore: rename branch to main (testcontainers#44)
@mdelapenya mdelapenya deleted the bump-go-version branch March 6, 2023 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants