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
* Fixup importpath
Infer test import path correctly from deps
Remove importpath from all go_binary and go_test rules
Add importpath to all go_library rules
Delete go_prefix occurences
Progress on #721
* Review fixes
"""See go/core.rst#go_library for full documentation."""
22
23
iflibrary:
23
24
#TODO: print("\nDEPRECATED: {}//{}:{} : the library attribute is deprecated. Please migrate to embed.".format(native.repository_name(), native.package_name(), name))
"""See go/core.rst#go_binary for full documentation."""
45
48
iflibrary:
46
49
#TODO: print("\nDEPRECATED: {}//{}:{} : the library attribute is deprecated. Please migrate to embed.".format(native.repository_name(), native.package_name(), name))
47
50
embed=embed+ [library]
48
-
#if importpath:
49
-
# print("\nDEPRECATED: {}//{}:{} : the importpath attribute on go_binary is deprecated.".format(native.repository_name(), native.package_name(), name))
51
+
#TODO: Turn on the deprecation warning when gazelle stops adding these
52
+
#if importpath and native.repository_name() == "@":
53
+
# print("\nDEPRECATED: //{}:{} : the importpath attribute on go_binary is deprecated.".format(native.package_name(), name))
"""See go/core.rst#go_test for full documentation."""
70
75
iflibrary:
71
76
#TODO: print("\nDEPRECATED: {}//{}:{} : the library attribute is deprecated. Please migrate to embed.".format(native.repository_name(), native.package_name(), name))
72
77
embed=embed+ [library]
73
-
#TODO: if importpath:
74
-
# print("\nDEPRECATED: {}//{}:{} : the importpath attribute on go_test is deprecated.".format(native.repository_name(), native.package_name(), name))
78
+
ifnotimportpath:
79
+
importpath=auto_importpath
80
+
#TODO: Turn on the deprecation warning when gazelle stops adding these
81
+
#elif native.repository_name() == "@":
82
+
# print("\nDEPRECATED: //{}:{} : the importpath attribute on go_test is deprecated.".format(native.package_name(), name))
0 commit comments