mirror of
https://github.com/spf13/cobra
synced 2025-04-07 23:39:12 +00:00
feat(i18n): test the locales using the appropriate build flag
This commit is contained in:
parent
4a45b27a39
commit
d995d9fd4e
2 changed files with 5 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -21,7 +21,8 @@ lint:
|
|||
|
||||
test: install_deps
|
||||
$(info ******************** running tests ********************)
|
||||
LANGUAGE="en" go test -v ./...
|
||||
go test -v ./...
|
||||
LANGUAGE="en" go test -tags locales -v ./...
|
||||
|
||||
richtest: install_deps
|
||||
$(info ******************** running tests with kyoh86/richgo ********************)
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build locales
|
||||
// +build locales
|
||||
|
||||
package cobra
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in a new issue