Skip to content

How to change one component for another at build time? #179

Answered by DavidVujic
sreinken-va asked this question in Q&A
Discussion options

You must be logged in to vote

I think it should work to do as you have done from a tech perspective, but I might have made assumptions about the flat structure as I mentioned before. I can have a look at it!

From a Polylith perspective, I would still recommend to rethink the setup with the nested client1 and client2. Are they represented as components when you run poly info? Ideally, I think the cli_impl should be the components and not the top folders.

As I see it, the reusability of bases are not as common as for components - even if it is possible. The main use case that I have known about before for reusing a base is to have several services running with the same base but with different environment variables.

If t…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sreinken-va
Comment options

@DavidVujic
Comment options

Answer selected by sreinken-va
@sreinken-va
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants