-
Notifications
You must be signed in to change notification settings - Fork 0
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
It should be possible to save recipes to remotes #31
Comments
What about: --push-recipes would:
|
Maybe we can keep this simpler.. how about using symlinks? My proposal is:
I see the clear benefit the no additional workflow has to be learned What do you think? Do you see any shortcoming? |
Nice idea, just one thing. What would be the workflow if someone wants to write a new recipe and not simply edit one? He would need to get inside the git repo, add the recipe and do the symlink himself ? |
Maybe through the |
The -u option now would be used to symlink the recipes in the local repository/ies. In case of conflicts, recipes with the same name in different repositories, the user would be prompted to choose. |
Proposal is the following:
|
How to deal with same repo different branches Technically it is possible to add recipes for the same repo but different branches, since the recipes are simlinks to their sources it means we must have multiple source folders for the same repo. How to organize these folders? |
What if a branch of a recipes' repository has already been cloned and Forest should warn the repo is already present locally, and an eventual pull should be performed by the user if necessary. This command will simply symlink the recipes. |
It would be useful to have a
|
@alaurenzi this commit 2ac69bd contains some initial work and also the subparsers I was telling you about. For now, recipes' sources folder management is as suggested here #31 (comment) |
Some feedback after using this workflow for a little bit. From the "branch-specific" folder you can push/pull, but cannot merge any other branch (because you are not allowed to see them). This kind of breaks how git works and makes synchronizing with other branches quite cumbersome. Is it really necessary to deal with "same repo different branches"? I think it's super useful to have the possibility to access recipes from multiple repos by using the symlinks, but for recipes from the same repo wouldn't it be better to just create a new branch? @MarcoRuzzon @alaurenzi what do you think? Would this work or would it break something else? Am i missing something? |
I tend to agree |
It makes sense, this workflow was intended to support the use of multiple branches from the same repo. As @EdoardoRomiti suggested, it can be misleading at times and should be avoided. I will fix it. |
Add recipes from remote
Suggested new workflow:
Update recipes using local repositories
Suggested workflow:
What happens when branch is checked out?symlinks can break, use |
To simplify even more I suggest supporting only one recipes' repository. This repo will be cloned directly in the recipes folder. Modifying recipes and pushing/pulling them to/from remote will be done using only the well know git workflow. |
FYI @liesrock |
This can be ok as temporary solution, but I think we should try to match the behavior of apt in the long run, and figure out something simple to handle collisions |
No description provided.
The text was updated successfully, but these errors were encountered: