chore: bump golangci version#216
Conversation
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
6104a6f to
ae102c8
Compare
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
Duologic
left a comment
There was a problem hiding this comment.
Can you also update it here: https://github.com/crossplane-contrib/provider-sql/blob/master/.github/workflows/ci.yml#L14
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
a392577 to
e73ddc9
Compare
Done, thanks! |
|
Hi @Duologic I see this is failing due to some deprecated actions (https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/). WDYT about using this very same PR to bump the actions? BTW just saw the dependabot PR which would have helped raising the flag here. |
|
@fernandezcuesta If you can add the publish-artifact bump to this PR, that would be great! |
Head branch was pushed to by a user without write access
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
054ed41 to
7c50ebe
Compare
|
@fernandezcuesta for some reason, we don't get any button here to approve workflows from first time contributor in this PR. Could you try and create a new PR, as it seems you already tried rebase and that didn't help. |
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
64a2968 to
ed91ff7
Compare
* fix: enable management policies Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * fix: linter Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: offload lint changes to #216 Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: revert changes as per peer review Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --------- Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
* fix: enable management policies Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * fix: linter Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: offload lint changes to crossplane-contrib#216 Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: revert changes as per peer review Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --------- Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> Signed-off-by: Alan Caldera <30800723+ajcaldera1@users.noreply.github.com>
* fix: enable management policies Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * fix: linter Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: offload lint changes to crossplane-contrib#216 Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: revert changes as per peer review Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --------- Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> Signed-off-by: Alan Caldera <30800723+ajcaldera1@users.noreply.github.com>
* Refresh build system - update to latest Go, Up, crossplane-runtime etc (crossplane-contrib#182) * go get github.com/crossplane/crossplane-tools@master && go mod tidy && make generate Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Add latest crossplane-runtime (including managementPolicies) go get github.com/crossplane/crossplane-runtime@latest && go mod tidy && make generate Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Update controller-runtime API after breaking changes upstream Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Bump build/ and up version to be compatible with newer docker Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Avoid deprecated k8s.io/utils/pointer Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Bump Go to 1.21, golangci-linter to 1.54 (match build/) Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Integration test: Set registry to xpkg.upbound.io/ Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Integration test: OS for Kind is always Linux Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> --------- Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * PostgreSQL CREATE SCHEMA support (crossplane-contrib#181) * Schema controller for PostgreSQL This adds support for CREATE SCHEMA (not any DDL like Schema hero). This is needed to run third party solutions that require the schema to exist, like grafana operator and temporal operator. Co-authored-by: Lars Haugan <456305+larhauga@users.noreply.github.com> Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Generate files for PostgreSQL Schema Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Expand PostgreSQL config example to include secret and ssl mode, docker info Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Avoid new(string) and use nicer ptr.To values in test Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> --------- Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> Co-authored-by: Lars Haugan <456305+larhauga@users.noreply.github.com> * chore: add provider install documentation (crossplane-contrib#174) Signed-off-by: Bastien CERIANI <bastien.ceriani@gmail.com> * Give MySQL sql_log_bin at DSN level to take parameter into account (crossplane-contrib#171) Signed-off-by: Florian Gaillot <fgaillot@qosenergy.com> * change the host with endpoint to make it worked Signed-off-by: Batuhan Apaydin <batuhan.apaydin@chainguard.dev> * ci: fix upload-artifact ref * allow to define login db (crossplane-contrib#192) Signed-off-by: bakito <github@bakito.ch> * add support for mssql schema in grants (crossplane-contrib#193) Signed-off-by: bakito <github@bakito.ch> * optional binlog parameters in mysql connection string to allow the use of DB default setting (crossplane-contrib#201) Signed-off-by: Marius Leahu <Marius.Leahu@swisscom.com> * fix: remove unneeded flush privileges call for mysql (crossplane-contrib#202) Signed-off-by: Marius Ziemke <marius@ziemke.net> Co-authored-by: Marius Ziemke <marius@ziemke.net> * feat: add custom tls config support to mysql (crossplane-contrib#184) * feat: add custom tls config support Signed-off-by: Mathieu Frenette <silphid@users.noreply.github.com> * use provider config name to make tls name unique Signed-off-by: Mathieu Frenette <silphid@users.noreply.github.com> * refactor integration tests into modular functions Signed-off-by: Mathieu Frenette <silphid@users.noreply.github.com> --------- Signed-off-by: Mathieu Frenette <silphid@users.noreply.github.com> Co-authored-by: Mathieu Frenette <silphid@users.noreply.github.com> * refactor(mysql): consistent username/host parameters (crossplane-contrib#205) Signed-off-by: Duologic <jeroen@simplistic.be> * chore: update build/, Makefile and integration test script (crossplane-contrib#204) Signed-off-by: Duologic <jeroen@simplistic.be> * feat(postgresql): add revoke public logic to grant and schema resources (crossplane-contrib#207) - added a field called revokePublicOnDb in grant resource; if true, it will revoke from public access to DB; This usually a DBA requirement. - added a field called revokePublicOnSchema in schema resource; if true, it will revoke from public access to a schema; This usually a DBA requirement. Signed-off-by: oliver.zokra <oliver.zokra@kyriba.com> * test(postgresql): implement postgresdb integration tests (crossplane-contrib#208) Signed-off-by: oliver.zokra <oliver.zokra@kyriba.com> * update helm repo before intalling mariadb (crossplane-contrib#209) Signed-off-by: oliver.zokra <oliver.zokra@kyriba.com> * chore: add chlunde to maintainers list (crossplane-contrib#225) Signed-off-by: Duologic <jeroen@simplistic.be> * bump github actions upload-action to latest release due to deprecation Signed-off-by: Lars Haugan <lars.haugan@sparebank1.no> * chore: bump golangci version (crossplane-contrib#216) * chore: bump golangci Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: bump golangci on github actions workflow Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: bump golangci up to v2, bump up all action dependencies Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: even more actions pinned Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --------- Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: Update Go to 1.23.9 (crossplane-contrib#230) Go 1.23.9 is a security update, and we also need to update Go to get dependabot security updates out (dependabot does not run 'go mod tidy'). Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * Bump golang.org/x/crypto from 0.21.0 to 0.35.0 (crossplane-contrib#229) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.21.0 to 0.35.0. - [Commits](golang/crypto@v0.21.0...v0.35.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-version: 0.35.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump golang.org/x/net from 0.25.0 to 0.38.0 (crossplane-contrib#231) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.25.0 to 0.38.0. - [Commits](golang/net@v0.25.0...v0.38.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-version: 0.38.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 (crossplane-contrib#232) Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0. --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-version: 1.33.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: enable management policies (crossplane-contrib#215) * fix: enable management policies Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * fix: linter Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: offload lint changes to crossplane-contrib#216 Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: revert changes as per peer review Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --------- Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * Move negz to emeritus status (crossplane-contrib#226) As requested on slack Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * test: add coverage of managementPolicies to e2e (crossplane-contrib#233) Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> * chore: remove duplicate entry of golangci version (crossplane-contrib#236) * chore: remove duplicate entry of golangci version Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: bump up versions for crossplane 1.20 Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: restore changes Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --------- Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * Refactor * Revert to previous usertype contants --------- Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no> Signed-off-by: Bastien CERIANI <bastien.ceriani@gmail.com> Signed-off-by: Florian Gaillot <fgaillot@qosenergy.com> Signed-off-by: Batuhan Apaydin <batuhan.apaydin@chainguard.dev> Signed-off-by: bakito <github@bakito.ch> Signed-off-by: Marius Leahu <Marius.Leahu@swisscom.com> Signed-off-by: Marius Ziemke <marius@ziemke.net> Signed-off-by: Mathieu Frenette <silphid@users.noreply.github.com> Signed-off-by: Duologic <jeroen@simplistic.be> Signed-off-by: oliver.zokra <oliver.zokra@kyriba.com> Signed-off-by: Lars Haugan <lars.haugan@sparebank1.no> Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Carl Henrik Lunde <chlunde@ifi.uio.no> Co-authored-by: Lars Haugan <456305+larhauga@users.noreply.github.com> Co-authored-by: Bastien Cer <bastien.ceriani@gmail.com> Co-authored-by: fgaillot-qosenergy <67331418+fgaillot-qosenergy@users.noreply.github.com> Co-authored-by: Batuhan Apaydin <batuhan.apaydin@chainguard.dev> Co-authored-by: Hasan Turken <turkenh@gmail.com> Co-authored-by: Duologic <jeroen@simplistic.be> Co-authored-by: Marc Brugger <github@bakito.ch> Co-authored-by: Marius Leahu <11443917+mleahu@users.noreply.github.com> Co-authored-by: Marius Ziemke <marius@ziemke.net> Co-authored-by: Mathieu Frenette <1917993+silphid@users.noreply.github.com> Co-authored-by: Mathieu Frenette <silphid@users.noreply.github.com> Co-authored-by: olikyr <oliver.zokra@kyriba.com> Co-authored-by: Lars Haugan <lars.haugan@sparebank1.no> Co-authored-by: J. Fernández <7312236+fernandezcuesta@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: bump golangci Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: bump golangci on github actions workflow Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: bump golangci up to v2, bump up all action dependencies Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: even more actions pinned Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --------- Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> Signed-off-by: Joaquín Fernández Campo <xocasdashdash@users.noreply.github.com>
* fix: enable management policies Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * fix: linter Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: offload lint changes to crossplane-contrib#216 Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> * chore: revert changes as per peer review Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --------- Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> Signed-off-by: Joaquín Fernández Campo <xocasdashdash@users.noreply.github.com>
Description of your changes
make lintcommand prompts deprecation warnings and fails to succeed with the current settings, mainly due to deprecated linters. This PR bumps golangci version and replaces some linters with the suggested alternatives, while sticking as much as possible to the original settings.Fixes #
I have:
make reviewableto ensure this PR is ready for review.How has this code been tested
make lint