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

feat: multiple specs in one file, with internal dependency resolution #146

Draft
wants to merge 47 commits into
base: main
Choose a base branch
from

Conversation

pmengelbert
Copy link
Contributor

Take a look at test/fixtures/eraser-manager-build-dep.yml and test/fixtures/eraser-manager-runtime-dep.yml

Try building different targets.

If there is more than one spec in a spec file, you can specify the target with (for the example kubernetes-eraser-manager):
--target=kubernetes-eraser-manager/mariner2/rpm or --target=kubernetes-eraser-manager-compat/mariner2/container, or similar.

graph.go Outdated Show resolved Hide resolved
graph.go Outdated Show resolved Hide resolved
graph.go Outdated Show resolved Hide resolved
graph.go Outdated Show resolved Hide resolved
graph.go Outdated Show resolved Hide resolved
graph.go Outdated Show resolved Hide resolved
@pmengelbert pmengelbert force-pushed the pmengelbert/multi_spec/1 branch 2 times, most recently from 3fbe60e to bc0fcd6 Compare February 20, 2024 19:49
cmd/tsort/main.go Outdated Show resolved Hide resolved
graph.go Outdated Show resolved Hide resolved
graph.go Outdated Show resolved Hide resolved
@pmengelbert pmengelbert force-pushed the pmengelbert/multi_spec/1 branch 4 times, most recently from b4ea546 to 39a58b3 Compare February 20, 2024 21:48
@cpuguy83 cpuguy83 added this to the v0.2.0 milestone Feb 21, 2024
@pmengelbert
Copy link
Contributor Author

pmengelbert commented Feb 21, 2024

  • Merge all the RPM states rather than looping through a spec's build deps. This will improve caching

@pmengelbert
Copy link
Contributor Author

pmengelbert commented Feb 21, 2024

  • Remove the graph from global state.

@pmengelbert
Copy link
Contributor Author

In addition to some other changes to the graph, I have made it (and the specs within it) immutable. Once initialized, it can't be changed.

@pmengelbert pmengelbert force-pushed the pmengelbert/multi_spec/1 branch 3 times, most recently from 330d50a to febfe63 Compare February 26, 2024 20:22
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Also, remove `targetSlice` since it is not necessary

Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
This reverts commit 8722210.
Signed-off-by: Peter Engelbert <[email protected]>
Make the specs immutable, with one exception that they may be modified
once in order to substitute the build args.

Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
Signed-off-by: Peter Engelbert <[email protected]>
@cpuguy83 cpuguy83 modified the milestones: v0.2.0, v0.3.0 Apr 12, 2024
@cpuguy83 cpuguy83 removed this from the v0.3.0 milestone May 6, 2024
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.

3 participants