I’m trying to build a snap and I’m having the following error:
$ snapcraft --debug
Launching a VM.
snap "core18" has no updates available
Skipping pull pgweb (already ran)
Skipping build pgweb (already ran)
Skipping stage pgweb (already ran)
Skipping prime pgweb (already ran)
Determining the version from the project repo (version: git).
fatal: not a git repository (or any parent up to mount point /root)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
I understand that snapcraft is trying to get the version from git, but it’s not being able to find the git repository. I understand that but I don’t know how to act on it. Here is my snapcraft.yaml
:
name: pgweb-kemelzaidan
base: core18
version: git
summary: Cross-platform client for PostgreSQL databases
description: |
Pgweb is a cross-platform web-based database browser for PostgreSQL,
written in Go.
grade: devel
confinement: devmode
parts:
pgweb:
source-type: git
source: https://github.com/sosedoff/pgweb.git
plugin: go
go-importpath: github.com/sosedoff/pgweb
build-packages:
- gcc
apps:
pgweb:
command: pgweb