Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
Todo List
Member nix::AbstractNixRepl::RunNix
this is a layer violation
Member nix::AddCompletions::setType (Type type)=0
it should not be possible to change the type after it has been set.
Member nix::Args::parent
this would probably be better in the CommandClass. getRoot() could be an abstract method that peels off at most one layer before recurring.
Member nix::chomp (std::string_view s)
return std::string_view.
Member nix::Constant::type
we should use an enum for this.
Member nix::deleteGeneration (const std::filesystem::path &profile, GenerationNumber gen)
Should we expose this at all?
Struct nix::DerivationBuilder
Ideally, it would not be a class, but a single function. However, besides the main entry point, there are a few more methods which are externally called, and need to be gotten rid of. There are also some virtual methods (either directly here or inherited from DerivationBuilderCallbacks, a stop-gap) that represent outgoing rather than incoming call edges that either should be removed, or become (higher order) function parameters.
Member nix::DerivationBuilderCallbacks::childTerminated ()=0
this should be reworked
Class nix::DerivationBuilderImpl
This should not be a class. registerOutputs wants to be a function over the state it reads, which is most of what is here.
Member nix::DerivationBuilderParams::drvOptions
this should be part of Derivation.
Member nix::DesugaredEnv::create (Store &store, const BasicDerivation &drv, const derivation::Options< StorePath > &drvOptions, const StorePathSet &inputPaths)
drvOptions will go away as a separate argument when it is just part of Derivation.
Class nix::DrvOutputSubstitutionGoal
rename this BuildTraceEntryGoal, which will make sense especially once Realisation is renamed to BuildTraceEntry.
Struct nix::ExecutablePath
rename, it is not just good for executable paths, but also other lists of paths.
Member nix::ExtraPathInfoValue::Value::extendedOutputsSpec
merge with DerivedPath's 'outputs' field?
Member nix::FlakeRef::subdir
Should probably use CanonPath instead of std::string?
Struct nix::GcStore
actually this is not so good because stores are views. Some views have only a no-op temp roots even though others to the same store allow triggering GC. For instance one can't add a root over ssh, but that doesn't prevent someone from gc-ing that store accessed via SSH locally).
Member nix::Generation::path
Use StorePath instead of std::filesystem::path?
Member nix::Goal::preserveFailure
this is yet another not-nice hack in the goal system that we ought to get rid of. See #11927
Member nix::HttpBinaryCacheStore::isTrustedClient () override
try to expose our HTTP authentication status.
Member nix::Installable::getStorePath ()
should we move this to InstallableDerivedPath? It is only supposed to work there anyways. Can always downcast.
Member nix::LegacySSHBuilder::buildDerivationAsync (const StorePath &drvPath, const BasicDerivation &drv, const ServeProto::BuildOptions &options)
Use C++23 std::move_only_function.
Member nix::LocalFSStoreConfig::LocalFSStoreConfig (const std::filesystem::path &path, const Params &params)
Make this less error-prone with new store settings system.
Member nix::LookupPath::Path::s
Maybe change this to std::variant<SourcePath, URL>.
Member nix::LookupPath::Prefix::s
Should we normalize this when constructing a LookupPath::Prefix?
Member nix::Machine::systemTypes
this information should eventually just exist to update an underlying setting on Store::Config, just as the feature information updates Store::Config::systemType. The only wrinkle is whether the makes sense for separate local stores to have distinct systems, when they are all the current OS, just different part of the file system.
Member nix::MemorySourceAccessor::addFile (CanonPath path, std::string &&contents)
Have a way to insert "borrowed" std::string_view without copying.
Member nix::NarInfoDiskCache::get (const Settings &settings, SQLiteSettings)
Probably should instead create a memo table so multiple settings -> multiple instances, but this is not yet a problem in practice.
Member nix::NixStringContext
This should be renamed to StringContextBuilder.
Struct nix::NixStringContextElem
This should be renamed to StringContextBuilderElem, since:
Member nix::Nothing
currently unused, but could be revived if we can evaluate derivations in-memory.
Member nix::openNewFileForWrite (const std::filesystem::path &path, mode_t mode, OpenNewFileForWriteParams params)
Reparse points on Windows.
Member nix::operator<< (Sink &sink, ServeProto::Command op)
Switch to using ServeProto::Serialize instead probably. But this was not done at this time so there would be less churn.
Member nix::operator<< (std::ostream &s, ServeProto::Command op)
Perhaps render known opcodes more nicely.
Member nix::operator<< (Sink &sink, WorkerProto::Op op)
Switch to using WorkerProto::Serialise instead probably. But this was not done at this time so there would be less churn.
Member nix::operator<< (std::ostream &s, WorkerProto::Op op)
Perhaps render known opcodes more nicely.
Member nix::operator<< (Sink &sink, uint64_t n)
Should we even allow negative values to get serialised?
Member nix::OsCanonPath::toPortable () const
The encoding does not round-trip on Windows, where this narrows each wchar_t component. Names that are not valid Unicode (e.g. unpaired surrogates) will not survive until we represent CanonPath as WTF-8.
Struct nix::ParsedURL::Authority
Maybe support passwords in userinfo part of the url for auth.
Member nix::ParsedURL::Authority::password
Warn about unused password subcomponent.
Member nix::PathFilter
type
Member nix::RemoteFSAccessor::accessObject (const StorePath &path)
This actually doesn't return nullptr, but throws on invalid paths.
Struct nix::RemoteStore
RemoteStore is a misnomer - should be something like DaemonStore.
Member nix::RestoreSink::createDirectory (const CanonPath &path) override
Remove. Only keep the callback driven function (at least for recursive traversal).
Class nix::RestoreSinkHooks
Do something on Windows.
Member nix::Result
Consider C++23 std::expected instead. Then we could get rid of valueOr because we would already have something similar from the standard library.
Struct nix::ServeProto::Version
Convert to struct with separate major vs minor fields.
Member nix::SourceAccessor::pathExists (const CanonPath &path)
Consider making this non-virtual, since the evaluator uses maybeLstat as an indication that a file exists always (for positive caching purposes).
Struct nix::Specified
Consider making this pluggable instead of passing through the encoded authority + path.
Member nix::Store::addToStoreFromDump (Source &dump, std::string_view name, FileSerialisationMethod dumpMethod=FileSerialisationMethod::NixArchive, ContentAddressMethod hashMethod=ContentAddressMethod::Raw::NixArchive, HashAlgorithm hashAlgo=HashAlgorithm::SHA256, const StorePathSet &references=StorePathSet(), RepairFlag repair=NoRepair)=0
remove?
Member nix::Store::derivationFromPath (const StorePath &drvPath)
suspicious to have a Store method that uses getBuilder.
Member nix::Store::substitutePaths (const StorePathSet &paths)
suspicious to have a Store method that uses getBuilder.
Member nix::Store::unsupported (const std::string &op)
Using this should be a last resort. It is better to make the method "virtual pure" and/or move it to a subclass.
Member nix::StoreConfigBase::Unix
At some point we will have to adjust this further, to support the case of Unix SSHing to Windows.
Struct nix::StoreDirConfig

This should just be inherited by StoreConfig. However, it would be a huge amount of churn if Store didn't have these methods anymore, forcing a bunch of code to go from store.method(...) to store.config.method(...).

this should not have "config" in its name, because it no longer uses the configuration system for storeDir — in fact, storeDir isn't even owned, but a mere reference. But doing that rename would cause a bunch of churn.

Member nix::StoreDirConfig::parseStorePathCanonical (std::string_view path) const
Try to use this as much as possible, and then rename so we have parseStorePath and parseStorePathNonCanonical.
Member nix::switchLink (std::filesystem::path link, std::filesystem::path target)
Always use switchGeneration() instead, and delete this.
Class nix::SysError
Rename this to PosixError or similar. At this point Windows support is too WIP to justify the code churn, but if it is finished then a better identifier becomes moe worth it.
Class nix::UnixDerivationBuilderImpl
Ideally, it would not be a class, but a single function. However, besides the main entry point, there are a few more methods which are externally called, and need to be gotten rid of. There are also some virtual methods (either directly here or inherited from DerivationBuilderCallbacks, a stop-gap) that represent outgoing rather than incoming call edges that either should be removed, or become (higher order) function parameters.
Member nix::UnkeyedValidPathInfo::narHash
document this
Member nix::UnkeyedValidPathInfo::operator<=> (const UnkeyedValidPathInfo &) const noexcept
return std::strong_ordering once id is removed
Member NIX_WHEN_SUPPORT_ACLS (ARG)
Switch to a better way, as having a macro is not the nicest. This will be easier to do after further settings refactors.