Skip to content

Allow git clone instead of tarball #111

@magnusviri

Description

@magnusviri

I'm working on micro-editor.github.io and this is the output when I build.

> ./pantry.core/scripts/build.ts micro-editor.github.io
{ ignoring: "1.0rc1", reason: "unparsable" }
{ ignoring: "v1.0rc2", reason: "unparsable" }
{ ignoring: "v2.0.0-rc1", reason: "unparsable" }
{ ignoring: "v2.0.0-rc2", reason: "unparsable" }
{ ignoring: "v2.0.0-rc3", reason: "unparsable" }
{ ignoring: "nightly", reason: "unparsable" }
fetching micro-editor.github.io@2.0.11
{ ignoring: "1.0rc1", reason: "unparsable" }
{ ignoring: "v1.0rc2", reason: "unparsable" }
{ ignoring: "v2.0.0-rc1", reason: "unparsable" }
{ ignoring: "v2.0.0-rc2", reason: "unparsable" }
{ ignoring: "v2.0.0-rc3", reason: "unparsable" }
{ ignoring: "nightly", reason: "unparsable" }
querying
cache: hit
+ cd /opt/tea/micro-editor.github.io/src/v2.0.11
+ export SRCROOT=/opt/tea/micro-editor.github.io/src/v2.0.11
+ SRCROOT=/opt/tea/micro-editor.github.io/src/v2.0.11
+ export PATH=/opt/tea/tea.xyz/gx/cc/v0.1.1/bin:/opt/tea/openssl.org/v1.1.118/bin:/opt/tea/go.dev/v1.19.2/bin:/Users/james/.tea_bin:/usr/bin:/bin:/usr/sbin:/sbin
+ PATH=/opt/tea/tea.xyz/gx/cc/v0.1.1/bin:/opt/tea/openssl.org/v1.1.118/bin:/opt/tea/go.dev/v1.19.2/bin:/Users/james/.tea_bin:/usr/bin:/bin:/usr/sbin:/sbin
+ export PKG_CONFIG_PATH=/opt/tea/openssl.org/v1.1.118/lib/pkgconfig
+ PKG_CONFIG_PATH=/opt/tea/openssl.org/v1.1.118/lib/pkgconfig
+ export LIBRARY_PATH=/opt/tea/openssl.org/v1.1.118/lib:/opt/tea/go.dev/v1.19.2/lib
+ LIBRARY_PATH=/opt/tea/openssl.org/v1.1.118/lib:/opt/tea/go.dev/v1.19.2/lib
+ export LD_LIBRARY_PATH=/opt/tea/openssl.org/v1.1.118/lib:/opt/tea/go.dev/v1.19.2/lib
+ LD_LIBRARY_PATH=/opt/tea/openssl.org/v1.1.118/lib:/opt/tea/go.dev/v1.19.2/lib
+ export CPATH=/opt/tea/openssl.org/v1.1.118/include
+ CPATH=/opt/tea/openssl.org/v1.1.118/include
+ export DYLD_FALLBACK_LIBRARY_PATH=/opt/tea/openssl.org/v1.1.118/lib:/opt/tea/go.dev/v1.19.2/lib
+ DYLD_FALLBACK_LIBRARY_PATH=/opt/tea/openssl.org/v1.1.118/lib:/opt/tea/go.dev/v1.19.2/lib
+ export SSL_CERT_FILE=/opt/tea/openssl.org/v1.1.118/ssl/cert.pem
+ SSL_CERT_FILE=/opt/tea/openssl.org/v1.1.118/ssl/cert.pem
+ export LDFLAGS=-Wl,-rpath,/opt/tea
+ LDFLAGS=-Wl,-rpath,/opt/tea
+ export TEA_PREFIX=/opt/tea
+ TEA_PREFIX=/opt/tea
+ export MACOSX_DEPLOYMENT_TARGET=11.0
+ MACOSX_DEPLOYMENT_TARGET=11.0
+ export PATH=/Users/james/Tea/pantry.core/scripts/brewkit:/opt/tea/tea.xyz/gx/cc/v0.1.1/bin:/opt/tea/openssl.org/v1.1.118/bin:/opt/tea/go.dev/v1.19.2/bin:/Users/james/.tea_bin:/usr/bin:/bin:/usr/sbin:/sbin
+ PATH=/Users/james/Tea/pantry.core/scripts/brewkit:/opt/tea/tea.xyz/gx/cc/v0.1.1/bin:/opt/tea/openssl.org/v1.1.118/bin:/opt/tea/go.dev/v1.19.2/bin:/Users/james/.tea_bin:/usr/bin:/bin:/usr/sbin:/sbin
+ make build-tags
git fetch --tags
fatal: not a git repository (or any of the parent directories): .git
make: *** [fetch-tags] Error 128
error: Uncaught Error: cmd failed: 2: /opt/tea/micro-editor.github.io/src/build.sh
    if (!exit.success) throw new RunError(exit.code, cmd)
                             ^
    at run (file:///Users/james/Tea/pantry.core/src/utils/index.ts:234:30)
    at async build (file:///Users/james/Tea/pantry.core/scripts/build/build.ts:113:5)
    at async __build (file:///Users/james/Tea/pantry.core/scripts/build/build.ts:34:24)
    at async _build (file:///Users/james/Tea/pantry.core/scripts/build/build.ts:21:12)
    at async file:///Users/james/Tea/pantry.core/scripts/build.ts:43:3

The build script for micro requires the download to be a git repo. Is there a way to do a git clone instead of downloading a tarball?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions