Skip to content
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

Fix resource generation target #216

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

vinay-gopalan
Copy link
Contributor

Overview

Builds on #211 and fixes remaining broken resources. This PR also removes the generate target from make dev and make quickdev (it still persists on make dev-dynamic if needed). The reason for this is that make generate takes ~5m to complete, and we needn't regenerate resources every time we need a build. If an update to the generated resources is required prior to building, we can always run the following:

$ make update-resources
$ make dev

Related Issues/Pull Requests

PR #211

@@ -53,7 +65,7 @@ func main() {

func checkResource(name string, fullPath string, resource *discovery.RestResource, doc *discovery.RestDescription, docMeta *discovery.DirectoryListItems, config iamutil.GeneratedResources) error {
for rName, child := range resource.Resources {
checkResource(rName, fullPath+"/"+rName, &child, doc, docMeta, config)
return checkResource(rName, fullPath+"/"+rName, &child, doc, docMeta, config)
Copy link

Choose a reason for hiding this comment

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

Suggested change
return checkResource(rName, fullPath+"/"+rName, &child, doc, docMeta, config)
err := checkResource(rName, fullPath+"/"+rName, &child, doc, docMeta, config)
if err != nil {
return err
}

@eh-steve
Copy link

eh-steve commented Jul 4, 2024

Hi @vinay-gopalan would you mind merging #218 into this?

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.

None yet

3 participants