-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: Refactors API client into hand rolled sdk in api/ directory #111
Conversation
2685c96
to
bcddef0
Compare
bcddef0
to
337fd4a
Compare
Signed-off-by: John McBride <[email protected]>
337fd4a
to
ff7eba0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the following error when running just lint
. I also made sure I have all the deps, by running go mod download
. It seems to just be the linting.
WARN [runner] Can't run linter goanalysis_metalinter: buildir: failed to load package : could not load export data: no export data for "github.com/cpuguy83/go-md2man/v2/md2man"
INFO [runner] processing took 1.877µs with stages: max_same_issues: 334ns, invalid_issue: 250ns, source_code: 167ns, filename_unadjuster: 167ns, cgo: 167ns, sort_results: 125ns, identifier_marker: 83ns, path_prefixer: 42ns, skip_dirs: 42ns, path_shortener: 42ns, skip_files: 42ns, fixer: 42ns, nolint: 42ns, path_prettifier: 42ns, exclude: 42ns, max_from_linter: 42ns, severity-rules: 42ns, max_per_file_from_linter: 41ns, autogenerated_exclude: 41ns, exclude-rules: 41ns, diff: 41ns, uniq_by_line: 0s
INFO [runner] linters took 1.844725876s with stages: goanalysis_metalinter: 1.844699918s
ERRO Running error: can't run linter goanalysis_metalinter
buildir: failed to load package : could not load export data: no export data for "github.com/cpuguy83/go-md2man/v2/md2man"
INFO Memory: 66 samples, avg is 137.4MB, max is 518.7MB
INFO Execution took 6.436220378s
error: Recipe `lint` failed on line 159 with exit code 3
It looks like running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. There's one unified toolchain in the |
That's very, very odd: the Lines 152 to 159 in ad9e3a0
Also note the successful lint run on this PR - maybe some useful logs there: https://github.com/open-sauced/pizza-cli/actions/runs/10687979965/job/29626781164?pr=111 The local code directory is mounted as You might also try to upgrade the linter locally. Looks like they cut a 1.60: diff --git a/justfile b/justfile
index a0e24e0..f47a1ac 100644
--- a/justfile
+++ b/justfile
@@ -155,7 +155,7 @@ lint:
--rm \
-v "$(pwd)/:/app" \
-w /app \
- golangci/golangci-lint:v1.59 \
+ golangci/golangci-lint:v1.60 \
golangci-lint run -v
# Formats code via builtin go fmt |
My bad. Docker for Desktop wasn't completely running as I don't have it on by default. All good now.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CODEOWNERS issue isn't related to this so going to go ahead and ✅
## [1.3.0-beta.1](v1.2.1...v1.3.0-beta.1) (2024-09-04) ### 🍕 Features * Refactors API client into hand rolled sdk in api/ directory ([#111](#111)) ([e16e889](e16e889))
## [1.3.0](v1.2.1...v1.3.0) (2024-09-06) ### 🍕 Features * Create a contributor list after generating codeowners ([#141](#141)) ([72c5d58](72c5d58)) * now the documentation for the pizza-cli can be generated via pizza docs ([#143](#143)) ([3f5d27e](3f5d27e)) * Refactors API client into hand rolled sdk in api/ directory ([#111](#111)) ([e16e889](e16e889)) * support fallback attributions when generating codeowners file ([#145](#145)) ([35af4da](35af4da)) * update `CODEOWNERS` copy with command ([#130](#130)) ([a477959](a477959)) ### 🐛 Bug Fixes * Corrects invalid gosec lint error ([#151](#151)) ([f76527f](f76527f)) * Exhume Posthog functionality ([#147](#147)) ([de091ca](de091ca)) * now fallback .sauced.yaml contents get read ([#135](#135)) ([fd658e5](fd658e5)) * NPM cache now looks at package-lock file ([#136](#136)) ([cd4b8da](cd4b8da))
Description
Refactors API client code into a hand rolled SDK under
api/
. This is partially for simplicity but also so we can move fast without having to roll out a new generated Go SDK.This also refactors several of the broken uses of the
v2
API. Now, the oldpizza insights
commands work.Related Tickets & Documents
Closes: #87
Steps to QA
just build
just lint
just test
./build/pizza generate codeowners .
./build/pizza insights user-contributions
./build/pizza insights repositories
./build/pizza insights contributors
Tier (staff will fill in)