Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: b72dc8c2f209
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 670c5ac8ef2e
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Dec 18, 2018

  1. nixos/testing: disallow special chars in machine names in network exp…

    …ressions
    
    These names are referenced by Perl variables inside the testing
    frameworks which don't allow chars like `-` as character inside. An exemplary
    expression may look like this:
    
    ```
    {
      x11-vm = {
        services.xserver.enable = true;
      };
    }
    ```
    
    This expression evaluates, e.g. when running `nixos-build-vms`, but when
    trying to run `./result/bin/nixos-run-vms`, an error like this occurs:
    
    ```
    starting VDE switch for network 1
    running the VM test script
    error: Can't modify subtraction (-) in scalar assignment at (eval 17) line 1, at EOF
    Bareword "test" not allowed while "strict subs" in use at (eval 17) line 1.
    Can't modify subtraction (-) in scalar assignment at (eval 17) line 1, at EOF
    Bareword "test" not allowed while "strict subs" in use at (eval 17) line 1.
    vde_switch: EOF on stdin, cleaning up and exiting
    cleaning up
    ```
    
    This can be very confusing for beginners, this change breaks evaluation
    if such names are used for machines.
    Ma27 committed Dec 18, 2018
    Copy the full SHA
    113a6b9 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #46806 from Ma27/disallow-dash-separators-in-machi…

    …ne-declarations
    
    nixos/testing: disallow special chars in machine names in network expressions
    fpletz committed Dec 18, 2018
    Copy the full SHA
    670c5ac View commit details
    Browse the repository at this point in the history