mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-05 12:12:06 +08:00
d8dec15ccc
* Add Makefile for Hygiene Signed-off-by: Sora Morimoto <sora@morimoto.io> * make format Signed-off-by: Sora Morimoto <sora@morimoto.io> --------- Signed-off-by: Sora Morimoto <sora@morimoto.io> Co-authored-by: Kenny Parnell <k.parnell@gmail.com>
19 lines
426 B
Bash
Executable File
19 lines
426 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
case "${ASDF_GOLANG_MOD_VERSION_ENABLED:-}" in
|
|
true)
|
|
printf ".go-version go.mod go.work\n"
|
|
;;
|
|
false)
|
|
printf ".go-version\n"
|
|
;;
|
|
*)
|
|
cat >&2 <<-EOF
|
|
Notice: Behaving like ASDF_GOLANG_MOD_VERSION_ENABLED=true
|
|
In the future this will have to be set to continue
|
|
reading from the go.mod and go.work files
|
|
EOF
|
|
printf ".go-version go.mod go.work\n"
|
|
;;
|
|
esac
|