Skip to content

deprecate packages sets, retry, github; release v0.14.0#171

Merged
marco-m-pix4d merged 2 commits intomasterfrom
deprecate-apis-v0.14.0
Jan 26, 2026
Merged

deprecate packages sets, retry, github; release v0.14.0#171
marco-m-pix4d merged 2 commits intomasterfrom
deprecate-apis-v0.14.0

Conversation

@marco-m-pix4d
Copy link
Contributor

@marco-m-pix4d marco-m-pix4d commented Jan 22, 2026

The deprecation warnings will be picked up by the documentation shown on https://pkg.go.dev/github.com/Pix4D/cogito and by any IDE that is Go-aware.

The irony is that the deprecation is detected also by the linter in CI and so CI fails :-D

deprecation

PCI-4471

// See the README and CONTRIBUTING files for additional information, caveats about GitHub
// API and imposed limits, and reference to official documentation.
//
// Deprecated: Package github is replaced by github.com/Pix4D/go-kit/github.
Copy link
Contributor

Choose a reason for hiding this comment

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

Go is really a well-designed tool :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. It is so pleasant to notice how much care went into it.

@aliculPix4D
Copy link
Contributor

The irony is that the deprecation is detected also by the linter in CI and so CI fails :-D

:)

@iAmoric
Copy link
Contributor

iAmoric commented Jan 22, 2026

The irony is that the deprecation is detected also by the linter in CI and so CI fails :-D

So how to you plan to merge this PR if the CI fails ? 😅

@marco-m-pix4d
Copy link
Contributor Author

The irony is that the deprecation is detected also by the linter in CI and so CI fails :-D

So how to you plan to merge this PR if the CI fails ? 😅

Indeed. I spent the last hour thinking about this. Overriding the failure and merging is possible, but what we really want is the docker image to be tagged and pushed (once merged).

So I think that before merging this PR, I need to add a commit that transforms the linter output from errors to warnings. If this is not possible, I must disable that specific linter error (as we just did for go-kit and defer close).

@marco-m-pix4d
Copy link
Contributor Author

Siiiiigh I am now facing the same errors in the GitHub API integration tests that we faced with go-kit (response payload changed).

marco-m-pix4d added a commit that referenced this pull request Jan 22, 2026
Rationale: majority of errchecks are fixed in go-kit. Now I am focusing on enabling the
deprecations in PR #171. Re-enabling this linter is already in the ticket TODO.
@iAmoric
Copy link
Contributor

iAmoric commented Jan 22, 2026

Siiiiigh I am now facing the same errors in the GitHub API integration tests that we faced with go-kit (response payload changed).

So, at least this shows the error really comes from github API :)

Maybe the solution is not to have this deprecated transition state, but directly remove?

@marco-m-pix4d marco-m-pix4d force-pushed the deprecate-apis-v0.14.0 branch from ec408a4 to eedb0d5 Compare January 22, 2026 19:17
@marco-m-pix4d marco-m-pix4d changed the base branch from master to backport-cogito-fixes January 22, 2026 19:18
@marco-m-pix4d marco-m-pix4d force-pushed the deprecate-apis-v0.14.0 branch from eedb0d5 to 58851b3 Compare January 22, 2026 19:26
Base automatically changed from backport-cogito-fixes to master January 23, 2026 08:53
@marco-m-pix4d marco-m-pix4d force-pushed the deprecate-apis-v0.14.0 branch 2 times, most recently from 1269ff7 to acacc1d Compare January 23, 2026 09:00
The deprecation warnings will be picked up by the documentation shown
on https://pkg.go.dev/github.com/Pix4D/cogito and by any IDE that is Go-aware.

PCI-4471
This is needed to be able to, when making a tag, build and push the Docker image.

This is safe since the only linter warnings are due to the deprecated APIs that
we are introducing on purpose.

The ticket has a TODO item to bring back the linter.
@marco-m-pix4d marco-m-pix4d force-pushed the deprecate-apis-v0.14.0 branch from acacc1d to 6abeab7 Compare January 26, 2026 08:21
@marco-m-pix4d marco-m-pix4d merged commit 812989d into master Jan 26, 2026
1 check passed
@marco-m-pix4d marco-m-pix4d deleted the deprecate-apis-v0.14.0 branch January 26, 2026 08:25
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.

3 participants