about summary refs log tree commit diff
path: root/tools/nixery/server/config/pkgsource.go
AgeCommit message (Collapse)AuthorFilesLines
2019-10-06 refactor(server): Use logrus convenience functions for logsVincent Ambo1-9/+3
Makes use of the `.WithError` and `.WithField` convenience functions in logrus to simplify log statement construction. This has the added benefit of making it easier to correctly log errors.
2019-10-06 refactor(server): Convert existing log entries to structured formatVincent Ambo1-3/+12
This rewrites all existing log statements into the structured logrus format. For consistency, all errors are always logged separately from the primary message in a field called `error`. Only the "info", "error" and "warn" severities are used.
2019-10-06 refactor(server): Replace log calls with logrusVincent Ambo1-1/+2
This introduces a structured logging library that can be used (next step) to attach additional metadata to log entries.
2019-09-10 refactor(server): Move package source management logic to serverVincent Ambo1-0/+155
Introduces three new types representing each of the possible package sources and moves the logic for specifying the package source to the server. Concrete changes: * Determining whether a specified git reference is a commit vs. a branch/tag is now done in the server, and is done more precisely by using a regular expression. * Package sources now have a new `CacheKey` function which can be used to retrieve a key under which a build manifest can be cached *if* the package source is not a moving target (i.e. a full git commit hash of either nixpkgs or a private repository). This function is not yet used. * Users *must* now specify a package source, Nixery no longer defaults to anything and will fail to launch if no source is configured.