Sometimes people tell me I have a knack for finding my way into unusually cursed problems.
Conversation
Notices
-
mcc (mcc@mastodon.social)'s status on Saturday, 02-Dec-2023 02:26:20 UTC mcc - Santa Claes πΈπͺππ°π likes this.
-
mcc (mcc@mastodon.social)'s status on Saturday, 02-Dec-2023 02:27:25 UTC mcc @onelson I did not receive any answers.
-
Santa Claes πΈπͺππ°π (clacke@libranet.de)'s status on Saturday, 02-Dec-2023 02:27:25 UTC Santa Claes πΈπͺππ°π @mcc @onelson Wisdom of the Ancients #xkcd979 -
Owen Nelson (onelson@mastodon.social)'s status on Saturday, 02-Dec-2023 02:27:26 UTC Owen Nelson @mcc so hold up. Was there a way?
-
mcc (mcc@mastodon.social)'s status on Saturday, 02-Dec-2023 10:57:27 UTC mcc i d⦠I don't control the submodule. I control the parent repo and I am including someone else's git repo as a submodule. Does that mean this idea no longer works?
-
Santa Claes πΈπͺππ°π (clacke@libranet.de)'s status on Saturday, 02-Dec-2023 10:57:27 UTC Santa Claes πΈπͺππ°π @mcc @stacked_automation You don't control the submodule, but you could control a directory between the submodule and the project root? -
nope (stacked_automation@mastodon.social)'s status on Saturday, 02-Dec-2023 10:57:29 UTC nope @mcc my understanding is the workspace would be defined in the submodule, so that when you call cargo *in that submodule*, it will only read submodule/.cargo/config.toml
similarly, submodule/.cargo/config.toml values take precedence over root/.cargo/config.toml
so if it were:root/.cargo/config.toml::[build] jobs = 2
that was breaking things, you would override with:
root/submodule/.cargo/config.toml::[build] jobs = 1
-
nope (stacked_automation@mastodon.social)'s status on Saturday, 02-Dec-2023 10:57:30 UTC nope @mcc you may be able to use workspaces to block it (see link),
or by explicitly overriding the values messing things up in the submodules config file.https://users.rust-lang.org/t/how-to-override-cargo-config-search-order/38197/4
-
mcc (mcc@mastodon.social)'s status on Saturday, 02-Dec-2023 10:57:30 UTC mcc 1. would using workspaces require moving my src/main.rs to a subdirectory/src/main.rs?
2. where would the explicit overriding take place? environment variables? -
Erin (chateauerin@mastodon.social)'s status on Saturday, 02-Dec-2023 10:57:34 UTC Erin @mcc NERDS: with computers, you can do anything you want!
YOU: can i make the computer not do something that I don't want it to do
NERDS: >:(Santa Claes πΈπͺππ°π likes this. -
Santa Claes πΈπͺππ°π (clacke@libranet.de)'s status on Wednesday, 06-Dec-2023 12:57:59 UTC Santa Claes πΈπͺππ°π @mcc It sounds like there is nothing one can do to stop ancestor traversal, but if a setting in root config messes submodule up, you might be able to revert it in the middle directory?
-
mcc (mcc@mastodon.social)'s status on Wednesday, 06-Dec-2023 12:58:00 UTC mcc @clacke @stacked_automation I do actually. That's sufficient? Maybe I was confused what was being proposed.