knative / knative/pkg

Rewrite the Knative code-gen to a Go-native tool

Open
#2,809 5 comments 0 reactions 0 assignees View on GitHub
triage/accepted
Dominant language
Go
Stars
276
Forks
343
Avg merge
1d 1h
Merged PRs (30d)
1

Description

## Expected Behavior

To fix https://github.com/knative/infra/issues/134 we need to remove the shell wrapper, so the Knative projects could run the code-gen in `go run ...` native way.

## Actual Behavior

[Current code gen](https://github.com/knative/pkg/blob/fcccb4e1a0a4d8a680d34665eb941a65376da2d3/hack/generate-knative.sh) has a shell wrapper. Because of it Knative projects which use this code gen require the vendor directory.

Contributor guide

Open the contributing guide

Research direction

Start with hack/generate-knative.sh and review how the current shell wrapper invokes code generation. The work is complete when the wrapper is replaced by a Go-native tool that Knative projects can run with go run without requiring a vendor directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, shell
Domain
build-system, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.