unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Where does MELPA's package versions come from?
@ 2020-11-13  4:35 Stefan Monnier
  2020-11-13  5:04 ` Clément Pit-Claudel
  2020-11-13  5:18 ` Jean Louis
  0 siblings, 2 replies; 6+ messages in thread
From: Stefan Monnier @ 2020-11-13  4:35 UTC (permalink / raw)
  To: emacs-devel

E.g. at https://stable.melpa.org/#/camlhttps://github.com/ocaml/caml-mode

I see that the package is released as version 4.7.1 but I can't figure
out where this info comes from: the recipe is

    (caml :repo "ocaml/caml-mode" :fetcher github)

and the code at https://github.com/ocaml/caml-mode doesn't seem to say
"4.7.1" anywhere either.

So where does MELPA find the release version number?


        Stefan




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Where does MELPA's package versions come from?
  2020-11-13  4:35 Where does MELPA's package versions come from? Stefan Monnier
@ 2020-11-13  5:04 ` Clément Pit-Claudel
  2020-11-13 13:09   ` Basil L. Contovounesios
  2020-11-13 13:58   ` Stefan Monnier
  2020-11-13  5:18 ` Jean Louis
  1 sibling, 2 replies; 6+ messages in thread
From: Clément Pit-Claudel @ 2020-11-13  5:04 UTC (permalink / raw)
  To: emacs-devel

> So where does MELPA find the release version number?

It uses git tags.  There has not been a release of caml-mode since the repo moved from ocaml/ocaml to ocaml/caml-mode, so the tag remains from back when the package was in the main ocaml repo.

The move happened in January 2019 (https://github.com/melpa/melpa/commit/d5459264336dec5c94da1e5194dfc4776c8130c7), which is consistent with OCaml being in version 4.07.1 (released Oct 2018, 4.08 was in June 2019).

Clément

On 11/12/20 11:35 PM, Stefan Monnier wrote:
> E.g. at https://stable.melpa.org/#/camlhttps://github.com/ocaml/caml-mode
> 
> I see that the package is released as version 4.7.1 but I can't figure
> out where this info comes from: the recipe is
> 
>     (caml :repo "ocaml/caml-mode" :fetcher github)
> 
> and the code at https://github.com/ocaml/caml-mode doesn't seem to say
> "4.7.1" anywhere either.
> 
> So where does MELPA find the release version number?
> 
> 
>         Stefan
> 
> 




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Where does MELPA's package versions come from?
  2020-11-13  4:35 Where does MELPA's package versions come from? Stefan Monnier
  2020-11-13  5:04 ` Clément Pit-Claudel
@ 2020-11-13  5:18 ` Jean Louis
  1 sibling, 0 replies; 6+ messages in thread
From: Jean Louis @ 2020-11-13  5:18 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

* Stefan Monnier <monnier@iro.umontreal.ca> [2020-11-13 07:36]:
> E.g. at https://stable.melpa.org/#/camlhttps://github.com/ocaml/caml-mode
> 
> I see that the package is released as version 4.7.1 but I can't figure
> out where this info comes from: the recipe is
> 
>     (caml :repo "ocaml/caml-mode" :fetcher github)
> 
> and the code at https://github.com/ocaml/caml-mode doesn't seem to say
> "4.7.1" anywhere either.
> 
> So where does MELPA find the release version number?

MELPA does not acknowledge author's version number or convention on
packaging.

It is trying to cope with wrongly written version numbers and uses
probably the date when package was last time fetched from archive. For
example this commithere is from 2nd July 2019 and MELPA injected
automatically package version of 3rd July 2019.

;; Author: Elis "etu" Axelsson
;; URL: https://github.com/etu/0blayout
;; Package-Commit: fd9a8f353dbd45b4628b5f84b8d8c2525ebf571d
;; Package-Version: 20190703.527
;; Package-X-Original-Version: 20160918.0
;; Version: 1.0.2
;; Keywords: convenience, window-management

From MELPA's script package-build.el:

      (with-current-buffer (find-file pkg-target)
        (package-build--update-or-insert-header "Package-Commit" commit)
        (package-build--update-or-insert-header "Package-Version" version)
        (package-build--ensure-ends-here-line pkg-source)
        (write-file pkg-target nil)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Where does MELPA's package versions come from?
  2020-11-13  5:04 ` Clément Pit-Claudel
@ 2020-11-13 13:09   ` Basil L. Contovounesios
  2020-11-13 16:43     ` Clément Pit-Claudel
  2020-11-13 13:58   ` Stefan Monnier
  1 sibling, 1 reply; 6+ messages in thread
From: Basil L. Contovounesios @ 2020-11-13 13:09 UTC (permalink / raw)
  To: Clément Pit-Claudel; +Cc: emacs-devel

Clément Pit-Claudel <cpitclaudel@gmail.com> writes:

>> So where does MELPA find the release version number?
>
> It uses git tags.

That's usually the case for MELPA Stable, right?
I thought MELPA usually uses git HEAD.

-- 
Basil



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Where does MELPA's package versions come from?
  2020-11-13  5:04 ` Clément Pit-Claudel
  2020-11-13 13:09   ` Basil L. Contovounesios
@ 2020-11-13 13:58   ` Stefan Monnier
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2020-11-13 13:58 UTC (permalink / raw)
  To: Clément Pit-Claudel; +Cc: emacs-devel

>> So where does MELPA find the release version number?
> It uses git tags.

But there are no tags in that repository!

> There has not been a release of caml-mode since the repo
> moved from ocaml/ocaml to ocaml/caml-mode, so the tag remains from back when
> the package was in the main ocaml repo.

Ahhhhhh!  So the package released as 4.7.1 was build from the previous
repository, which did have a tag "4.7.1".  Gotcha!


        Stefan




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Where does MELPA's package versions come from?
  2020-11-13 13:09   ` Basil L. Contovounesios
@ 2020-11-13 16:43     ` Clément Pit-Claudel
  0 siblings, 0 replies; 6+ messages in thread
From: Clément Pit-Claudel @ 2020-11-13 16:43 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: emacs-devel

On 11/13/20 8:09 AM, Basil L. Contovounesios wrote:
> Clément Pit-Claudel <cpitclaudel@gmail.com> writes:
> 
>>> So where does MELPA find the release version number?
>>
>> It uses git tags.
> 
> That's usually the case for MELPA Stable, right?
> I thought MELPA usually uses git HEAD.

Correct; Stefan's link was to MELPA stable.  For the regular MELPA the version number is just the date in YYYY.MM.DD format



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-11-13 16:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-13  4:35 Where does MELPA's package versions come from? Stefan Monnier
2020-11-13  5:04 ` Clément Pit-Claudel
2020-11-13 13:09   ` Basil L. Contovounesios
2020-11-13 16:43     ` Clément Pit-Claudel
2020-11-13 13:58   ` Stefan Monnier
2020-11-13  5:18 ` Jean Louis

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).