storj/private/apigen
Jeremy Wharton a52934ef4d private/apigen: prevent self imports
This change prevents Go code produced by the API generator from
importing its own package. Previously, we tried to prevent self imports
by skipping import paths whose last segment matched the generated Go
code's package name. However, aliased imports circumvented this.
We now require API definitions to define the Go package path so that we
can compare this with the import path directly.

Change-Id: I7ae7ec5e1a342d2f76cd28ff72d4cd7285c2820a
2023-11-15 21:41:20 +00:00
..
example private/apigen: prevent self imports 2023-11-15 21:41:20 +00:00
common_test.go private/apigen: Avoid clashes of types names 2023-10-05 07:30:09 +00:00
common.go private/apigen: prevent self imports 2023-11-15 21:41:20 +00:00
docgen.go private/apigen: Make API base path configurable 2023-08-28 14:35:01 +00:00
endpoint_test.go private/apigen: Add a TypeScript client mock generator 2023-10-25 14:43:01 +02:00
endpoint.go private/apigen: Add a TypeScript client mock generator 2023-10-25 14:43:01 +02:00
gogen_test.go private/apigen: Fix code generation for slices & arrays 2023-10-02 17:05:35 +02:00
gogen.go private/apigen: prevent self imports 2023-11-15 21:41:20 +00:00
tsgen.go private/apigen: Fix TS generator to align with linter 2023-11-03 16:41:54 +01:00
tsgenmock.go private/apigen: Fix TS generator to align with linter 2023-11-03 16:41:54 +01:00
tstypes_test.go private/apigen: fix TS class generation from collection of named struct 2023-10-17 22:45:07 -05:00
tstypes.go private/apigen: Fix TS generator to align with linter 2023-11-03 16:41:54 +01:00