nixpkgs/doc/languages-frameworks
Doron Behar a82c8611ce
buildGoModule: don't inherit build hooks when building go-modules (#225349)
* buildGoModule: don't inherit postBuild hook when building go-modules

This is a slight revert of 5ce647b8bf
(#212800).

Inheriting these hooks in the `.go-modules` derivation can be confusing:
One doesn't expect them to run when generating the fixed output modules
derivation, but only on the main derivation. A `postBuild` hook that
adds some files to $out will cause a very hard to debug issue[1].

This commit adds support for a dedicated `modPostBuild` hook that will
be used only by the derivation building `.go-modules`. Additionally,
`go.section.md` now explains these attributes behavior better.

[1]:
https://discourse.nixos.org/t/cant-update-a-go-package-getting-go-inconsistent-vendoring/27063/6

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-04-22 11:08:54 +10:00
..
agda.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
android.section.md androidenv: Implement cmdline-tools and patcher 2023-01-27 18:15:47 -05:00
beam.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
bower.section.md doc: prepare for commonmark 2021-06-07 06:34:59 +02:00
chicken.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
coq.section.md Fix a small typo in the manual 2023-04-14 17:11:13 +01:00
crystal.section.md doc: use sri hash syntax 2022-12-04 06:12:18 +00:00
cuda.section.md doc: fix typos 2022-12-17 18:21:48 -05:00
cuelang.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
dhall.section.md doc: use sri hash syntax 2022-12-04 06:12:18 +00:00
dotnet.section.md dotnet-sdk_3: remove 2023-03-26 14:24:49 +02:00
emscripten.section.md emscriptenPackages: s/overrideDerivation/overrideAttrs 2023-02-23 18:45:38 +02:00
gnome.section.md treewide: remove issue #56943 workarounds 2023-02-17 20:26:13 +02:00
go.section.md buildGoModule: don't inherit build hooks when building go-modules (#225349) 2023-04-22 11:08:54 +10:00
haskell.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
hy.section.md doc: fix typos 2022-12-17 18:21:48 -05:00
idris.section.md doc: use sri hash syntax 2022-12-04 06:12:18 +00:00
index.xml lisp-modules: Add manual section 2023-03-02 19:04:41 +01:00
ios.section.md doc: prepare for commonmark 2021-06-07 06:34:59 +02:00
java.section.md jre_minimal: document how to use a headless JDK 2021-09-30 10:34:51 +02:00
javascript.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
lisp.section.md lisp-modules: manual: add self links 2023-03-21 19:38:26 +01:00
lua.section.md use subcommands in plugin updaters (#223164) 2023-04-14 22:02:17 +02:00
maven.section.md doc: move makeWrapper to nativeBuildInputs from buildInputs 2022-07-14 22:08:56 +03:00
nim.section.md doc: use sri hash syntax 2022-12-04 06:12:18 +00:00
ocaml.section.md ocamlPackages.findlib: detect conflicts of version early 2023-01-03 20:30:34 +01:00
octave.section.md doc: minimize mentions of nix-env -i without -A in nixpkgs manual 2021-12-18 12:00:00 +00:00
perl.section.md doc: use sri hash syntax 2022-12-04 06:12:18 +00:00
php.section.md php74: Drop PHP 7.4 and add aliases throwing an error 2022-06-08 18:11:55 +02:00
pkg-config.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
python.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
qt.section.md pkgs/all-packages: remove unused alias, add comment 2023-01-12 20:51:24 +03:00
r.section.md doc: clarify location of rPackages overrides 2021-09-26 07:29:58 +10:00
ruby.section.md doc: assign ids to many headings 2023-03-27 22:39:11 +02:00
rust.section.md docs/rust: prefer ln -s over cp 2023-04-04 21:21:28 -04:00
swift.section.md doc: add section on swift 2023-02-04 22:30:10 +01:00
texlive.section.md texlive.combine: document how to create custom packages with pkgs and tlDeps attributes 2023-04-02 13:00:52 +01:00
titanium.section.md doc: prepare for commonmark 2021-06-07 06:34:59 +02:00
vim.section.md use subcommands in plugin updaters (#223164) 2023-04-14 22:02:17 +02:00