Skip to content

fetch local directory as a package for url fetcher

steckerhalter requested to merge vyp:local-dir-for-url-fetcher into master

Created by: vyp

Work in progress, obviously don't merge.

So a few disclaimers:

  • primarily opened for discussion, as someone new to emacs, lisp and elisp, I have no idea what I'm doing, so I don't really expect this to work.
  • if eventually good enough to merge, the commits will all be squashed into one with an appropriate commit message. these commit messages are just temporary.

So regarding the hashes. I'm thinking just have a hash of the concatenated hashes of all the relevant files (using quelpa-check-file-hash)? Where "relevant files" are by default all the .el files (recursively)? (Or otherwise can be changed with the :files in the recipe.)

I guess the hardest part is getting the version number to prepend to the hash? Possible to just check each relevant file for a ;; Version: header, and settle on the first one found? And if none found, use the current local system date and time like package-build (melpa) does? But then if the datetime is used, it will always result in a new package being built, even if no change has been made, correct? So that would be a problem.

cc @steckerhalter @wasamasa

Merge request reports