Hi, thanks for the replies. Maytham Alsudany: > Also please check if you can just patch the library to use > golang-github-mitchellh-go-homedir instead. Guilherme Puida Moreira: > Instead of packaging this, maybe it would be a good idea to encourage > upstream to use os.UserHomeDir, which was introduced in go 1.12.
I tested both approaches. Neither were drop in replacements. In the original lib, the caching behaviour was different, and some funcs related to caching were used in "fang" for testing. For using the standard lib, I had to add a helper function to expand tilde "~" to the home dir path. In both, I had to remove some test cases. I will stick with the stdlib for now. The clio (golang-github-anchore-clio) package also required a patch to remove this lib. Thanks, Rafael Passos

