You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/v2-import-map.md
+23-49Lines changed: 23 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Status: FROZEN for import paths. The one open decision (renames) is resolved: the three hyphenated packages are renamed to idiomatic Go names at the `/v2` boundary.
4
4
5
-
A rewrite of import paths alone is not sufficient to migrate. Some symbols also moved between modules during the v2 beta, after this map was frozen. Those are listed under [Symbols relocated during the v2 beta](#symbols-relocated-during-the-v2-beta), and they are compile errors, not silent changes.
5
+
Rewriting import paths is not sufficient on its own: some symbols also moved between modules during the beta. See [Symbols relocated during the v2 beta](#symbols-relocated-during-the-v2-beta).
6
6
7
7
Built from the actual v1 layout at tag `v1.0.1-test` (27 `modules/` packages, 2 `cmd/` binaries, 1 `internal/lib` tree).
8
8
@@ -70,12 +70,9 @@ So e.g. `modules/logger/parser` -> `modules/core/v2/logger/parser`, `modules/aws
70
70
71
71
## Symbols relocated during the v2 beta
72
72
73
-
The import-path rewrite above is mechanical. These moves are not: the function keeps its name, arguments, return type
74
-
and on-disk filename, but it now lives in the module that owns the type it operates on. This was done so that
75
-
`teststructure` no longer requires `aws`, `k8s`, `packer` and `ssh` (#1877). Importing it for `RunTestStage` used to
76
-
pull in the AWS SDK and client-go.
77
-
78
-
Each is a compile error after the path rewrite, so `go build ./...` finds every call site.
73
+
These functions moved to the module that owns the type they operate on, so that `teststructure` no longer requires
74
+
`aws`, `k8s`, `packer` and `ssh` (#1877). Name, arguments, return type and on-disk filename are unchanged. Each is a
75
+
compile error, so `go build ./...` finds every call site.
79
76
80
77
| v2.0.0-beta.1 | v2.0.0-beta.2 onwards |
81
78
|---|---|
@@ -88,58 +85,35 @@ Each is a compile error after the path rewrite, so `go build ./...` finds every
0 commit comments