asdf-golang/bin/list-legacy-filenames

19 lines
426 B
Plaintext
Raw Permalink Normal View History

2019-04-04 23:32:32 +08:00
#!/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