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

Append new/unknown packages from included files #165

Merged

Conversation

SuperTux88
Copy link
Contributor

I have some configs for work, which I didn't want to add to my main repo, and I created a separate repo for it, which I then included in the local.toml only on my work PC. This works fine as long as I only want to add additional files to existing packages. But when I wanted to add a config for a package which isn't in my main global.toml, it failed. I needed to create an empty package in the global.toml to which I then can add the files from my included repo.

With this change, I can include packages from my local.toml where the main global.toml doesn't need to know anything about it.

I don't know if I'm overlooking something here, and if there was a reason why unknown packages were rejected before (and even made it hard fail and not just print a warning). But in my local testing this small change works perfectly fine for my use-case. I'm just a bit confused as this case was already explicitly handled before (so it was known it can happen and wasn't just overlooked), so please tell me if I'm missing something.

This way you can include additional packages from a different source and
the main global.toml doesn't need to be aware of which packages you
might want to include, the only reference to the include is in the
local.toml.
@SuperCuber SuperCuber merged commit e262fa9 into SuperCuber:master Jun 2, 2024
9 checks passed
@SuperTux88 SuperTux88 deleted the allow-undefined-packages-in-include branch June 2, 2024 11:48
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.

2 participants