...
Run Format

Text file src/cmd/go/testdata/script/mod_edit_issue75105.txt

Documentation: cmd/go/testdata/script

     1env GO111MODULE=on
     2
     3go mod edit -godebug 'http2debug=2'
     4cmp go.mod go.mod.edit.want1
     5
     6go mod edit -json
     7cmp stdout go.mod.edit.want2
     8-- go.mod --
     9module foo
    10
    11go 1.25.0
    12-- go.mod.edit.want1 --
    13module foo
    14
    15go 1.25.0
    16
    17godebug http2debug=2
    18-- go.mod.edit.want2 --
    19{
    20	"Module": {
    21		"Path": "foo"
    22	},
    23	"Go": "1.25.0",
    24	"GoDebug": [
    25		{
    26			"Key": "http2debug",
    27			"Value": "2"
    28		}
    29	],
    30	"Require": null,
    31	"Exclude": null,
    32	"Replace": null,
    33	"Retract": null,
    34	"Tool": null,
    35	"Ignore": null
    36}

View as plain text