Clj-kondo personal-files request [Was: Clj-kondo linter classic snap]

I’ve converted this to the personal-files request.

Your snap is currently using:

plugs:
  clj-kondo-dir:
    interface: personal-files
    read:
    - $HOME/.clj-kondo
    write:
    - $HOME/.clj-kondo

To follow established patterns, please rename clj-kondo-dir as dot-clj-kondo.

Please note that write implies read so you can drop the ‘read’ part. Please note that “This interface is typically used to provide read-only access to top-level hidden data directories within a user’s home directory in order to support importing data from existing applications where the snap is the clear owner of the target directory.” (per the docs).

This snap is the clear owner of ~/.clj-owner, but it isn’t clear why write access is required or why $HOME/.clj-owner from within the snap isn’t sufficient (remember, inside the snap, $HOME is set to $SNAP_USER_DATA (ie, ~/snap/clj-owner/<revision>). Can you describe why this is not sufficient?

1 Like