Skip to content

Version string of the Logseq static build not easily identifyable in SPA build #20

@acsr

Description

@acsr

It is not easy to identify the version of the used Logseq static build and the publish-spa version that was used during publication.

It would help a lot if (at least as a debug option) the version tag of publish-spa and the logseq static build is included either in the html source as metadata or in the SPA UI reachable over an about link in the help section.

Why is adding your own page not sufficient?
The purpose is to have a proof of the actual used version instead of the intended versions, to spot misconfiguration or failed attempts to update the code.

challenges

  • The commandline command logseq-publish-spa has no --version output option or drops it during execution
  • The command logseq-publish-spa has no verbose option to dump the version of the static logseq build, you just rely on the given path.

If not available like suggested:

  • how can the version be retrieved manually from the final SPA build or from the installed code?
  • the actual state of the checkout (git status) is not enough, since the yarn install does not offer useful output in his warnings.
  • the full (re-)install command I used was:
    logseq % yarn install --frozen-lockfile && yarn gulp:build && clojure -M:cljs release publishing
    
    • Maybe there is a different syntax necessary to update properly

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions