Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Reduce dependencies on external libraries #2260

Merged
merged 4 commits into from
May 15, 2022

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented May 5, 2022

This removes dependencies to the following externals:

  • github.com/karrick/godirwalk - the standard library covers this functionality sufficiently well
  • github.com/markbates/oncer - functionality is trivial, just used sync.Once instead
  • github.com/markbates/safe - Inlined in one place, removed in another (code doesn't panic so no need to "safe" it)
  • Various smaller issues that go-golangci-lint complains about

@fasmat fasmat force-pushed the feature/reduce-dependencies branch from 9066e1b to 12a0d30 Compare May 14, 2022 21:20
@fasmat fasmat marked this pull request as ready for review May 14, 2022 21:26
@fasmat fasmat requested a review from a team as a code owner May 14, 2022 21:26
@fasmat
Copy link
Member Author

fasmat commented May 14, 2022

@paganotoni: ready for review :)

Copy link
Member

@sio4 sio4 left a comment

Choose a reason for hiding this comment

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

LGTM, but it includes (minor) breaking change, so in my opinion, we need to be careful when we write release notes for the next release with it.

@@ -29,9 +28,7 @@ type Options struct {
// Env is the "environment" in which the App is running. Default is "development".
Env string `json:"env"`

// LogLevel defaults to "debug". Deprecated use LogLvl instead
LogLevel string `json:"log_level"`
Copy link
Member

Choose a reason for hiding this comment

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

deprecated 4 years ago and now dropped! congratulations, but I think the release note should have a comment on this dropping.

@sio4 sio4 added breaking change This feature / fix introduces breaking changes dependency update module dependencies labels May 15, 2022
@sio4 sio4 requested a review from paganotoni May 15, 2022 01:51
@fasmat fasmat merged commit 6d1fac1 into development May 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking change This feature / fix introduces breaking changes dependency update module dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants