Open gornostal opened 2 months ago
I recently ran into this as well, except instead of it being a docker readonly file system, it is a readonly file system managed by kubernetes.
Our code avoids the CommandLineBuilder and invokes the command directly. I assume it is some default middleware that needs file system access, seemingly the UseSuggestDirective()
based on searching I've done.
var rootCmd = new RootCommand("My Service");
Environment.ExitCode = rootCmd.Invoice(args);
Steps to reproduce:
CommandLineBuilder
with.UseDefaults()
--read-only
to use a read-only file systemExpected result: CommandLine shouldn't use RegisterWithDotnetSuggest by default (or at least shouldn't create new files)
Actual result:
Workaround: