Use TODO everywhere.
This commit is contained in:
parent
e60fa080b4
commit
47f32ccea7
3 changed files with 4 additions and 5 deletions
|
|
@ -227,7 +227,7 @@ fn restore_ephemeral_system_dir() -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
// FIXME: we should probably lock this file to avoid concurrent writes
|
||||
// TODO: we should probably lock this file to avoid concurrent writes
|
||||
fn serialise_saved_services(services: &Services) -> Result<()> {
|
||||
let state_file = Path::new(SYSTEM_MANAGER_STATE_DIR).join(SERVICES_STATE_FILE_NAME);
|
||||
DirBuilder::new()
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ pub struct StorePath {
|
|||
|
||||
impl From<String> for StorePath {
|
||||
fn from(path: String) -> Self {
|
||||
// FIXME: handle this better
|
||||
// TODO: handle this better
|
||||
if !path.starts_with("/nix/store/") {
|
||||
panic!("Error constructing store path, not in store: {path}");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ enum Action {
|
|||
}
|
||||
|
||||
fn main() -> ExitCode {
|
||||
// FIXME: set default level to info
|
||||
// TODO: set default level to info
|
||||
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("debug")).init();
|
||||
handle_toplevel_error(go(Args::parse()))
|
||||
}
|
||||
|
|
@ -92,7 +92,6 @@ fn go(args: Args) -> Result<()> {
|
|||
store_path,
|
||||
activation_args: ActivationArgs { ephemeral },
|
||||
} => {
|
||||
// FIXME handle target_host
|
||||
copy_closure(&store_path, &target_host)?;
|
||||
activate(&store_path, ephemeral, &target_host, use_remote_sudo)
|
||||
}
|
||||
|
|
@ -101,7 +100,7 @@ fn go(args: Args) -> Result<()> {
|
|||
} => build(&flake_uri, &target_host),
|
||||
Action::Deactivate => {
|
||||
check_root()?;
|
||||
// FIXME handle target_host
|
||||
// TODO handle target_host
|
||||
deactivate()
|
||||
}
|
||||
Action::Generate { generate_args } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue