File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,8 @@ var versionRx = regexp.MustCompile(`\A(v\d+\.\d+\.\d+(?:-[0-9A-Za-z]+[0-9A-Za-z\
251
251
// v1.2.3-20181001143604-e0a95dfd547c
252
252
// v1.2.3-3.20181001143604-e0a95dfd547c
253
253
// v0.8.0-dev.2.0.20180608203834-19279f049241
254
- var tagRx = regexp .MustCompile (`\Av\d+\.\d+\.\d+-(?:[0-9A-Za-z\.]+\.)?\d{14}-([0-9a-f]+)\z` )
254
+ // v3.0.1-0.20190209023717-9147687966d9+incompatible
255
+ var tagRx = regexp .MustCompile (`\Av\d+\.\d+\.\d+-(?:[0-9A-Za-z\.]+\.)?\d{14}-([0-9a-f]+)(?:\+incompatible)?\z` )
255
256
256
257
// Parse parses a package spec into Tuple.
257
258
func Parse (spec , packagePrefix string ) (* Tuple , error ) {
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ func TestParseTag(t *testing.T) {
80
80
{"github.com/pkg/errors v1.2.3-0.20150716171945-2caba252f4dc" , "2caba252f4dc" },
81
81
{"github.com/pkg/errors v1.2.3-42.20150716171945-2caba252f4dc" , "2caba252f4dc" },
82
82
{"github.com/docker/libnetwork v0.8.0-dev.2.0.20180608203834-19279f049241" , "19279f049241" },
83
+ {"github.com/hjson/hjson-go v3.0.1-0.20190209023717-9147687966d9+incompatible" , "9147687966d9" },
83
84
}
84
85
85
86
for i , x := range examples {
You can’t perform that action at this time.
0 commit comments