Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

go module for dockerfile/parser #16

Merged
merged 3 commits into from
Jan 17, 2022
Merged

go module for dockerfile/parser #16

merged 3 commits into from
Jan 17, 2022

Conversation

crazy-max
Copy link
Owner

@crazy-max crazy-max commented Jan 17, 2022

move everything related to the parser to a dedicated pkg with its own go module to expose the minimum things needed.

this would require creating tags for the parser when we create a new release parser/vx.x.x.

"github.com/docker/dockerfile/parser"
"github.com/docker/dockerfile/parser/command"
"github.com/moby/buildkit/util/suggest"
Copy link
Owner Author

@crazy-max crazy-max Jan 17, 2022

Choose a reason for hiding this comment

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

We should remove dependencies on buildkit itself. Looks like github.com/moby/buildkit/util/suggest is only used by the parser so suggest to move it here from BuildKit repo.

Copy link
Owner Author

Choose a reason for hiding this comment

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

There is also github.com/moby/buildkit/util/stack in parser/errors.go.

@crazy-max crazy-max mentioned this pull request Jan 17, 2022
27 tasks
@crazy-max crazy-max force-pushed the parser-gomod branch 6 times, most recently from 02b4e1b to 3c57af2 Compare January 17, 2022 13:16
Repository owner deleted a comment from codecov bot Jan 17, 2022
@crazy-max crazy-max force-pushed the parser-gomod branch 6 times, most recently from 1427f7f to 4235fd3 Compare January 17, 2022 17:38
annotations: false

fixes:
- "vendor/github.com/docker/dockerfile::" # move path to its original location
Copy link
Owner Author

Choose a reason for hiding this comment

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

necessary with go submodule otherwise codecov loses track of the module path and looks in vendor dir instead:

image

Signed-off-by: CrazyMax <[email protected]>
@crazy-max crazy-max merged commit 801e43c into master Jan 17, 2022
@crazy-max crazy-max deleted the parser-gomod branch January 17, 2022 18:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant