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

     1  env GO111MODULE=on
     2  
     3  go mod edit -godebug 'http2debug=2'
     4  cmp go.mod go.mod.edit.want1
     5  
     6  go mod edit -json
     7  cmp stdout go.mod.edit.want2
     8  -- go.mod --
     9  module foo
    10  
    11  go 1.25.0
    12  -- go.mod.edit.want1 --
    13  module foo
    14  
    15  go 1.25.0
    16  
    17  godebug 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  }
    37  

View as plain text