What works for me is to make a wooden crate! With the wooden crate, I put two buckets inside and then commmand my villager to
take from the crate with buckets
use the well
Seems to work for me. Hopefully it works for you.