Coder Social home page Coder Social logo

metanorma-snap's Introduction

Build Status Snap Version

metanorma-snap: Metanorma Snap Package

Installation

The released Metanorma snap package is located at Snapcraft: Metanorma snap.

Building the package

On Linux:

# Enter the root directory of this repo
snapcraft snap

Via Docker:

docker run -v $(pwd):/build -w /build -it snapcore/snapcraft:stable snapcraft snap

Testing the package

If you are on macOS you can install snap to any of your multipass instances with:

multipass transfer metanorma_*_amd64.snap ${instance-name}:/home/multipass
multipass shell ${instance-name}
sudo snap install --devmode metanorma_*_amd64.snap

After this the snap is ready to use.

Testing uninstallation

Execute the following command to uninstall LaTeXML.

sudo snap remove metanorma

After executing the uninstall ensure that the metanorma executable is no longer found.

You can also try running metanorma help from the command-line to see if it is still installed.

Generating the snapcraft token

Run the following Docker command:

$ docker run -it snapcore/snapcraft:stable snapcraft export-login -

You will be prompted to enter your email and password.

$ docker run -it snapcore/snapcraft:stable snapcraft export-login -
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https://snapcraft.io/account
Email: [email protected]
Password:

We strongly recommend enabling multi-factor authentication: https://help.ubuntu.com/community/SSO/FAQs/2FA

Exported login starts on next line:
AABBB...==

Login successfully exported and printed above. This can now be used with

    echo "<login>" | snapcraft login --with -

to log in to this account with no password and have these
capabilities:

snaps:       No restriction
channels:    No restriction
permissions: ['package_access', 'package_manage', 'package_push', 'package_register', 'package_release', 'package_update']
expires:     2023-10-26T01:01:02.020303

This exported login is not encrypted. Do not commit it to version control!
Note
In this repository, the exported login AABBB…​== value is placed in GitHub Actions' secret named METANORMA_SNAPCRAFT_TOKEN.

metanorma-snap's People

Contributors

alexeymorozov avatar camobap avatar metanorma-ci avatar ronaldtse avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

alexeymorozov

metanorma-snap's Issues

(Git::GitExecuteError) fatal: unknown error occured while reading the configuration files

/__enclose_io_memfs__/local/vendor/bundle/ruby/2.4.0/gems/git-1.8.1/lib/git/lib.rb:1097:in `command': git '-c' 'color.ui=false' clone '--depth' '1' '--' 'https://github.com/fontist/formulas.git' '/home/runner/snap/metanorma/24/.fontist/formulas'  2>&1:Cloning into '/home/runner/snap/metanorma/24/.fontist/formulas'... (Git::GitExecuteError)
fatal: unknown error occured while reading the configuration files

snap package rejection due to 2 fails

checksums do not match. Please ensure the snap is created with either 'snapcraft pack

' (using snapcraft >= 2.38) or 'mksquashfs -noappend -comp xz -all-root -no-xattrs -no-fragments'. If using electron-builder, please upgrade to latest stable (>= 20.14.7). See https://forum.snapcraft.io/t/automated-reviews-and-snapcraft-2-38/4982/17 for details. security-snap-v2_squashfs_repack_checksum What does this mean?

found errors in file output: unusual mode 'rwxr-sr-x' for entry './local/lib/python2.7', unusual mode 'rwxr-sr-x' for entry './local/lib/python2.7/dist-packages', unusual mode 'rwxr-sr-x' for entry './local/lib/python2.7/site-packages', unusual mode 'rwxr-sr-x' for entry './local/lib/python3.6', unusual mode 'rwxr-sr-x' for entry './local/lib/python3.6/dist-packages', unusual mode 'rwxr-sr-x' for entry './local/share/fonts' security-snap-v2_squashfs_files

[[email protected]] metanorma contains outdated Ubuntu packages

A scan of this snap shows that it was built with packages from the Ubuntu
archive that have since received security updates. The following lists new
USNs for affected binary packages in each snap revision:

Revision r131 (amd64; channels: candidate)

  • libasn1-8-heimdal: 5766-1
  • libgssapi3-heimdal: 5766-1
  • libhcrypto4-heimdal: 5766-1
  • libheimbase1-heimdal: 5766-1
  • libheimntlm0-heimdal: 5766-1
  • libhx509-5-heimdal: 5766-1
  • libkrb5-26-heimdal: 5766-1
  • libroken18-heimdal: 5766-1
  • libwind0-heimdal: 5766-1

Revision r132 (amd64; channels: stable)

  • libasn1-8-heimdal: 5766-1
  • libgssapi3-heimdal: 5766-1
  • libhcrypto4-heimdal: 5766-1
  • libheimbase1-heimdal: 5766-1
  • libheimntlm0-heimdal: 5766-1
  • libhx509-5-heimdal: 5766-1
  • libkrb5-26-heimdal: 5766-1
  • libroken18-heimdal: 5766-1
  • libwind0-heimdal: 5766-1

Simply rebuilding the snap will pull in the new security updates and
resolve this. If your snap also contains vendored code, now might be a
good time to review it for any needed updates.

Thank you for your snap and for attending to this matter.

Builds at Travis failing

Due to:

$ for adoc in ./tests/*.adoc; do metanorma compile $adoc; done
 is not a legal status
article is not a legal document type: reverting to 'standard'
Traceback (most recent call last):
	18: from /snap/metanorma/x1/bin/metanorma:23:in `<main>'
	17: from /snap/metanorma/x1/bin/metanorma:23:in `load'
	16: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-cli-1.2.2/exe/metanorma:20:in `<top (required)>'
	15: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-cli-1.2.2/lib/metanorma/cli.rb:56:in `start'
	14: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
	13: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
	12: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
	11: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
	10: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-cli-1.2.2/lib/metanorma/cli/command.rb:34:in `compile'
	 9: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-cli-1.2.2/lib/metanorma/cli/compiler.rb:15:in `compile'
	 8: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-cli-1.2.2/lib/metanorma/cli/compiler.rb:11:in `compile'
	 7: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-cli-1.2.2/lib/metanorma/cli/compiler.rb:23:in `compile_file'
	 6: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-0.3.14/lib/metanorma/compile.rb:20:in `compile'
	 5: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-0.3.14/lib/metanorma/compile.rb:183:in `process_extensions'
	 4: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-0.3.14/lib/metanorma/compile.rb:183:in `each'
	 3: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-0.3.14/lib/metanorma/compile.rb:192:in `block in process_extensions'
	 2: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-csd-1.2.1/lib/metanorma/csd/processor.rb:36:in `output'
	 1: from /snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/isodoc-0.10.1/lib/isodoc/pdf_convert.rb:33:in `convert'
/snap/metanorma/x1/lib/ruby/gems/2.5.0/gems/metanorma-0.3.14/lib/metanorma/output/pdf.rb:18:in `convert': internal/modules/cjs/loader.js:670 (RuntimeError)
    throw err;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.