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: 3e3e7379cdc2
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 274afc493254
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 7, 2019

  1. go: build each package single-threaded (#53390)

    I noticed that I was seeing the Go compiler build things in parallel even when I'd set `-j1 --cores 1`. It appears that the compiler, by default, uses the number of CPUs that are available to perform a build, while nixpkgs parallelizes at the directory level.
    
    In order to change the fewest assumptions, this explicitly tells the Go compiler to run single-threaded. The flag's documentation is:
    
    ```
    -p n
    	the number of programs, such as build commands or
    	test binaries, that can be run in parallel.
    	The default is the number of CPUs available.
    ```
    
    So this should function as expected. Feedback appreciated!
    andrew-d authored and Mic92 committed Feb 7, 2019
    Copy the full SHA
    274afc4 View commit details
    Browse the repository at this point in the history