Commit 84fe542
committed
gopls/internal/golang: allow package move into empty directories
Previously, we would prevent moving a package if the resulting
package directory already exists. Instead, we should allow the
move as long as the target directory is empty -- either it doesn't
exist or it contains only directory entries.
Change-Id: I6590148d9d0fc1a57a8a4b13d39412fc7965f33c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/721680
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>1 parent e58dfd3 commit 84fe542
File tree
3 files changed
+59
-27
lines changed- gopls/internal
- golang
- test
- integration/misc
- marker/testdata/rename
3 files changed
+59
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
948 | 949 | | |
949 | 950 | | |
950 | 951 | | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
955 | 958 | | |
956 | 959 | | |
957 | 960 | | |
| |||
977 | 980 | | |
978 | 981 | | |
979 | 982 | | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
984 | 989 | | |
985 | 990 | | |
986 | 991 | | |
| |||
1001 | 1006 | | |
1002 | 1007 | | |
1003 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1004 | 1028 | | |
1005 | 1029 | | |
1006 | 1030 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
851 | | - | |
| 851 | + | |
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
936 | 938 | | |
937 | | - | |
938 | | - | |
939 | | - | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
940 | 942 | | |
941 | 943 | | |
942 | 944 | | |
| |||
958 | 960 | | |
959 | 961 | | |
960 | 962 | | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
965 | 969 | | |
966 | | - | |
967 | | - | |
968 | | - | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
969 | 973 | | |
| 974 | + | |
970 | 975 | | |
971 | 976 | | |
972 | 977 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| |||
0 commit comments