Cache paths changed in 2.1?

This works (note: “.”):

  - save_cache:
      key: v5-cache-{{ .Branch }}
      paths:
        - .

This does not (note: “~”):

  - save_cache:
      key: v5-cache-{{ .Branch }}
      paths:
        - ~

I’ve been using a similar save_cache config for years (I think). What changed in 2.1?

THIS works:

  - save_cache:
      key: v5-cache-{{ .Branch }}
      paths:
        - ~/project

This also works:

  - save_cache:
      key: v5-cache-{{ .Branch }}
      paths:
        - ~/