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

Add initpkg tool to initialize a new package #240

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

Conversation

kaniini
Copy link
Contributor

@kaniini kaniini commented Jun 1, 2023

No description provided.

Signed-off-by: Ariadne Conill <[email protected]>
Signed-off-by: Ariadne Conill <[email protected]>
Signed-off-by: Ariadne Conill <[email protected]>
@kaniini kaniini requested a review from a team as a code owner June 1, 2023 21:23
@kaniini kaniini requested review from jdolitsky and ajayk and removed request for a team June 1, 2023 21:23

// InterpretURI interprets the provided source code URI and fills in project
// information as well as pipeline instructions in how to fetch the sources.
func (ctx *Context) InterpretURI(uri string) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would not use ctx as a receiver because it collides with the idiomatic name forcontext.Context parameters.

(I'd also rename the struct from Context to something else so we don't have a dozen different flavors of Context floating around, but that's less important than the receiver name.)

Version string
License string
Layout string
WorkDir string
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider having Context taking a WorkFS parameter so it's more easily tested with an apkfs.FullFS or something instead of always writing to disk.

Copy link
Contributor

@luhring luhring left a comment

Choose a reason for hiding this comment

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

Nice! 🎸

Docs on how to use w/ example(s) would be awesome! 🙏

return err
}

ctx.Build.Package.Description = "TODO"
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can get the description from the repos API: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28 (if given project path is GitHub)

@Dentrax
Copy link
Member

Dentrax commented Jun 26, 2023

Hey @kaniini! I'm looking forward to get this PR merged. So we can iterate the features over time. Is there anything we should do?

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.

4 participants