File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1460,7 +1460,7 @@ Module paths need not be unique across different registries.
1460
1460
1461
1461
#### Registry attribute
1462
1462
1463
- The ` registry ` attribute defines the available registries.
1463
+ The ` registry ` attribute defines the available registries and must preceed a package clause .
1464
1464
The registry attribute expects two arguments, the first is the name of the registry and the second is the ` $base ` URL of the registry API endpoint.
1465
1465
See the [ Registry API] ( #registry-api ) for more details.
1466
1466
@@ -1482,7 +1482,9 @@ The import path may contain specifiers about which registry and which versions o
1482
1482
An import path follows this grammar:
1483
1483
1484
1484
ImportPath = ModulePath [ "/" PackagePath ] [ Version ] .
1485
- ModulePath = PathElement [ "/" PathElement ] [ MajorVersion ] .
1485
+ ModulePath = RegistryName [ "/" ModuleName ] [ MajorVersion ] .
1486
+ RegistryName = PathElement
1487
+ ModuleName = PathElement
1486
1488
MajorVersion = "/v" int_lit .
1487
1489
PackagePath = PathElement { "/" PathElement } .
1488
1490
Version = PreVersion | MinVersion
You can’t perform that action at this time.
0 commit comments