Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-04-08 | comments | Ben Burdette | |
2020-04-08 | return of NixCode | Ben Burdette | |
2020-04-08 | initializer style | Ben Burdette | |
2020-04-07 | columnRange -> column | Ben Burdette | |
2020-04-06 | comment cleanup | Ben Burdette | |
2020-04-06 | constructor style basically working | Ben Burdette | |
2020-04-06 | ignore error-demo | Ben Burdette | |
2020-04-06 | add libutil, libexpr include dirs | Ben Burdette | |
2020-04-06 | Merge branch 'master' into error-format | Ben Burdette | |
2020-04-06 | Merge pull request #3474 from cole-h/error-on-unsupported-protocol | Eelco Dolstra | |
Don't retry on "unsupported protocol" error | |||
2020-04-05 | Don't retry on "unsupported protocol" error | Cole Helbling | |
When encountering an unsupported protocol, there's no need to retry. Chances are, it won't suddenly be supported between retry attempts; error instead. Otherwise, you see something like the following: $ nix-env -i -f git://git@github.com/foo/bar warning: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1); retrying in 335 ms warning: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1); retrying in 604 ms warning: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1); retrying in 1340 ms warning: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1); retrying in 2685 ms With this change, you now see: $ nix-env -i -f git://git@github.com/foo/bar error: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1) | |||
2020-04-05 | libexpr | Ben Burdette | |
2020-04-03 | move out of tests/ | Ben Burdette | |
2020-04-03 | handle Pos instead of individual file/line/columnrange args | Ben Burdette | |
2020-04-03 | Publish a tarball containing the crates we depend on | Eelco Dolstra | |
This is needed since we no longer produce a source tarball. (cherry picked from commit bf70a047a0b2da606f65a88f13ce2994065cd9c4) | |||
2020-04-03 | nix-env: Refuse to operate on a new-style profile | Eelco Dolstra | |
This prevents users from accidentally nuking their profile via nix-env. (cherry picked from commit 021634e3e3edb327089d33ab41b743f0a40126da) | |||
2020-04-03 | variadic args for hint format | Ben Burdette | |
2020-04-03 | Merge pull request #3470 from andir/remove-unusued-attrError | Eelco Dolstra | |
libexpr: remove unused attrError | |||
2020-04-02 | formatted with astyle | Ben Burdette | |
2020-04-02 | indenting | Ben Burdette | |
2020-04-02 | full include path | Ben Burdette | |
2020-04-02 | libexpr: remove unused attrError | Andreas Rammhold | |
The attrError variable is no longer used but still allocated on every call to the findAlongAttrPath function. | |||
2020-04-01 | using std:: everywhere; fix a formatting error; add exception flags | Ben Burdette | |
2020-04-01 | indenting | Ben Burdette | |
2020-04-01 | remove using std::*, switch to include guard | Ben Burdette | |
2020-03-31 | examples of invalid errors | Ben Burdette | |
2020-03-31 | add some explanatory comments | Ben Burdette | |
2020-03-31 | rename errors/warnings | Ben Burdette | |
2020-03-31 | enum style | Ben Burdette | |
2020-03-31 | Merge pull request #3460 from NixOS/dev-shell | Eelco Dolstra | |
Backport 'nix dev-shell' from the flakes branch | |||
2020-03-31 | Merge pull request #3463 from Ninlives/placeholder-passAsFile | Eelco Dolstra | |
fix placeholder not substituted in passAsFile | |||
2020-03-31 | nix shell -> nix dev-shell | Eelco Dolstra | |
2020-03-31 | fix placeholder not substituted in passAsFile | mlatus | |
2020-03-30 | Backport 'nix dev-shell' from the flakes branch | Eelco Dolstra | |
This also adds a '--profile' option to 'nix build' (replacing 'nix-env --set'). | |||
2020-03-30 | remove cruft | Ben Burdette | |
2020-03-30 | build with make | Ben Burdette | |
2020-03-30 | Fix macOS build | Eelco Dolstra | |
2020-03-30 | Remove global -I flags | Eelco Dolstra | |
(cherry picked from commit 2c692a3b144523bca68dd6de618124ba6c9bb332) | |||
2020-03-27 | remove util.hh from deps | Ben Burdette | |
2020-03-27 | more cleanup | Ben Burdette | |
2020-03-27 | camelcase; optional hint | Ben Burdette | |
2020-03-25 | some colors | Ben Burdette | |
2020-03-25 | programName as static member var | Ben Burdette | |
2020-03-25 | Merge pull request #3445 from gnprice/pr-installer-colors | Eelco Dolstra | |
installer: Fix terminal colors. | |||
2020-03-24 | installer: Fix terminal colors. | Greg Price | |
The install-multi-user script uses blue, green, and red colors, as well as bold and underline, to add helpful formatting that helps structure its rather voluminous output. Unfortunately, the terminal escape sequences it uses are not quite well-formed. The relevant information is all there, just obscured by some extra noise, a leading parameter `38`. Empirically, the result is: * On macOS, in both Terminal.app and iTerm2, the spurious `38` is ignored, the rest of the escape sequence is applied, and the colors show up as intended. * On Linux, in at least gnome-terminal and xterm, the spurious `38` and the next parameter after it are ignored, and what's left is applied. So in the sequence `38;4;32`, the 4 (underline) is ignored but the 32 (green) takes effect; in a more typical sequence like `38;34`, the 34 (blue) is ignored and nothing happens. These codes are all unchanged since this script's origins as a Darwin-only script -- so the fact that they work fine in common macOS terminals goes some way to explain how the bug arose. Happily, we can make the colors work as intended by just deleting the extra `38;`. Tested in all four terminals mentioned above; the new codes work correctly on all of them, and on the two macOS terminals they work exactly the same as before. --- In a bit more technical detail -- perhaps more than anyone, me included, ever wanted to know, but now that I've gone and learned it I'll write it down anyway :) -- here's what's happening in these codes: An ECMA-48 "control sequence" begins with `\033[` aka "CSI", contains any number of parameters as semicolon-separated decimal numbers (plus sometimes other wrinkles), and ends with a byte from 0x40..0x7e. In our case, with `m` aka "SGR", "Select Graphic Rendition". An SGR control sequence `\033[...m` sets colors, fonts, text styles, etc. In particular a parameter `31` means red, `32` green, `34` blue, `4` underline, and `0` means reset to normal. Those are all we use. There is also a `38`. This is used for setting colors too... but it needs arguments. `38;5;nn` is color nn from a 256-color palette, and `38;2;rr;gg;bb` has the given RGB values. There is no meaning defined for `38;1` or `38;34` etc. On seeing a parameter `38` followed by an unrecognized argument for it, apparently some implementations (as seen on macOS) discard only the `38` and others (as seen on Linux) discard the argument too before resuming. | |||
2020-03-24 | switch to one level of builder function, not subobject functions | Ben Burdette | |
2020-03-24 | fix column range | Ben Burdette | |
2020-03-24 | MkNixCode, MkErrLine approach | Ben Burdette | |
2020-03-24 | renaming | Ben Burdette | |
2020-03-24 | Misc changes from the flakes branch | Eelco Dolstra | |