Giter Club home page Giter Club logo

heroku-buildpack-git-lfs's People

Contributors

koalalorenzo avatar lcmen avatar raxod502 avatar

Stargazers

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

Watchers

 avatar  avatar

heroku-buildpack-git-lfs's Issues

The "HEROKU_" namespace is protected and shouldn't be used

Thanks for the nice little buildpack! Would you consider changing the name of the repo var, though? Getting the following currently:

Setting HEROKU_BUILDPACK_GIT_LFS_REPO and restarting ⬢ some-app... done, v3
 ▸    Warning: The "HEROKU_" namespace is protected and shouldn't be used.

Cheers and thanks again!

Using this app

Hey, I love the concept! The only thing I'm wondering about is how to actually deploy a git repo that has LFS to push to heroku?

I am looking to switch into using LFS for this repository, but using the git push heroku XXX methodology auto declines all LFS.

Any tips are appreciated (or what you did to get it there in the first place to actually be able to pull) and I'll make a PR for the readme update. Thanks!

How to set environment variable

I have created an .env file at the root directory which contains something like this:
[email protected]:{GITHUB_USERNAME}/{GITHUB_REPO}.git

However, when i try to deploy i keep getting this error message
Env var HEROKU_BUILDPACK_GIT_LFS_REPO is not set

I am trying to deploy a simple Flask application. Any advice?

Git LFS buildpack not working: fatal: Could not parse object 'bcc6b02da917c464040a4b26540103dc7109f345'.

The BuildPack isn't working with my heroku app, it gives me this error.

remote: 2022-01-22 15:44:47 (67.1 MB/s) - ‘git-lfs.tar.gz’ saved [4055224/4055224]
remote:
remote:        README.md
remote:        CHANGELOG.md
remote:        man/
remote:        man/git-lfs-clean.1
remote:        man/git-lfs-track.1
remote:        man/git-lfs-fetch.1.html
remote:        man/git-lfs-post-merge.1.html
remote:        man/git-lfs-env.1
remote:        man/git-lfs-uninstall.1.html
remote:        man/git-lfs-push.1.html
remote:        man/git-lfs-lock.1
remote:        man/git-lfs-clean.1.html
remote:        man/git-lfs-smudge.1
remote:        man/git-lfs-install.1.html
remote:        man/git-lfs-install.1
remote:        man/git-lfs-locks.1.html
remote:        man/git-lfs.1.html
remote:        man/git-lfs-prune.1
remote:        man/git-lfs-post-checkout.1.html
remote:        man/git-lfs-smudge.1.html
remote:        man/git-lfs-untrack.1
remote:        man/git-lfs-locks.1
remote:        man/git-lfs-migrate.1.html
remote:        man/git-lfs-env.1.html
remote:        man/git-lfs-fsck.1
remote:        man/git-lfs-migrate.1
remote:        man/git-lfs-ls-files.1.html
remote:        man/git-lfs-post-commit.1
remote:        man/git-lfs-ext.1
remote:        man/git-lfs-status.1.html
remote:        man/git-lfs-fetch.1
remote:        man/git-lfs-pull.1
remote:        man/git-lfs-untrack.1.html
remote:        man/git-lfs-prune.1.html
remote:        man/git-lfs-ls-files.1
remote:        man/git-lfs-pre-push.1.html
remote:        man/git-lfs.1
remote:        man/git-lfs-pointer.1
remote:        man/git-lfs-post-commit.1.html
remote:        man/git-lfs-track.1.html
remote:        man/git-lfs-logs.1.html
remote:        man/git-lfs-uninstall.1
remote:        man/git-lfs-config.5
remote:        man/git-lfs-update.1.html
remote:        man/git-lfs-update.1
remote:        man/git-lfs-clone.1
remote:        man/git-lfs-pointer.1.html
remote:        man/git-lfs-checkout.1.html
remote:        man/git-lfs-post-merge.1
remote:        man/git-lfs-clone.1.html
remote:        man/git-lfs-post-checkout.1
remote:        man/git-lfs-config.5.html
remote:        man/git-lfs-fsck.1.html
remote:        man/git-lfs-status.1
remote:        man/git-lfs-unlock.1.html
remote:        man/git-lfs-filter-process.1
remote:        man/git-lfs-lock.1.html
remote:        man/git-lfs-ext.1.html
remote:        man/git-lfs-push.1
remote:        man/git-lfs-pre-push.1
remote:        man/git-lfs-checkout.1
remote:        man/git-lfs-filter-process.1.html
remote:        man/git-lfs-pull.1.html
remote:        man/git-lfs-unlock.1
remote:        man/git-lfs-logs.1
remote:        git-lfs
remote:        install.sh
remote:        /tmp/codon/tmp/buildpacks/de37e887844785a1126d230ea56f2f216b506471
remote: -----> Download Git LFS assets
remote:        /tmp/build_a43e709d /tmp/codon/tmp/buildpacks/de37e887844785a1126d230ea56f2f216b506471
remote:        git version 2.25.1
remote:        git-lfs/2.13.3 (GitHub; linux amd64; go 1.16.2; git a5e65851)
remote:        Initialized empty Git repository in /tmp/build_a43e709d/.git/
remote: From https://github.com/sahal-mulki/api-pneumoniacheck
remote:  * [new branch]      main       -> origin/main
remote: fatal: Could not parse object 'bcc6b02da917c464040a4b26540103dc7109f345'.
remote:  !     Push rejected, failed to compile Git LFS app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to image-api-sahal.
remote:
To https://git.heroku.com/image-api-sahal.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/image-api-sahal.git'

error fetching custom buildpack via Heroku GUI deployment

Appreciate the handy build pack to make working with Git LFS possible!

Regarding using the build pack with Git integration, I'm getting the following error when I add the build pack to Heroku app via the GUI and then proceed to initiate a manual deploy

-----> Python app detected
-----> No change in requirements detected, installing from cache
-----> Installing SQLite3
-----> Installing requirements with pip
-----> Downloading NLTK corpora…
 !     'nltk.txt' not found, not downloading any corpora
 !     Learn more: https://devcenter.heroku.com/articles/python-nltk
 !     error fetching custom buildpack https://elements.heroku.com/buildpacks/raxod502/heroku-buildpack-git-lfs
 !     Push failed 

I see that the tip given in the documentation is to pass in the --no-verify flag to git push. Do you know if there is a way to do this via the Heroku Git Integration deployment process (done via GUI rather than the Git CLI)? I believe the error may be due to this.

Could not parse object 'd1f07fc5c87a7c365ebf38fc560dfbeb5d5c35f6'.

I am unsure why I am getting this error. I have set my BL_BUILDPACK_GIT_LFS_REPO=https://@github.com/krisselberg/tiwebsite.git using heroku:config . I use the main branch, and my LFS file is less than 300 MB. Any ideas on how to resolve this issue?

git push heroku main --no-verify
Enumerating objects: 249, done.
Counting objects: 100% (249/249), done.
Delta compression using up to 4 threads
Compressing objects: 100% (229/229), done.
Writing objects: 100% (249/249), 236.13 MiB | 1.17 MiB/s, done.
Total 249 (delta 108), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpack: https://github.com/raxod502/heroku-buildpack-git-lfs
remote: -----> Git LFS app detected
remote: -----> Install Git LFS
remote:        /tmp /tmp/codon/tmp/buildpacks/de37e887844785a1126d230ea56f2f216b506471
remote: --2022-08-01 04:36:33--  https://github.com/git-lfs/git-lfs/releases/download/v2.13.3/git-lfs-linux-amd64-v2.13.3.tar.gz
remote: Resolving github.com (github.com)... 140.82.113.3
remote: Connecting to github.com (github.com)|140.82.113.3|:443... connected.
remote: HTTP request sent, awaiting response... 302 Found
remote: Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/13021798/3ac86a80-8e46-11eb-9c75-c4e2da444635?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220801%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220801T043521Z&X-Amz-Expires=300&X-Amz-Signature=2ac9b6549db763c6ca8efefb92c19daf7a9628d6b55f0c718c039cbabaa989d8&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=13021798&response-content-disposition=attachment%3B%20filename%3Dgit-lfs-linux-amd64-v2.13.3.tar.gz&response-content-type=application%2Foctet-stream [following]
remote: --2022-08-01 04:36:33--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/13021798/3ac86a80-8e46-11eb-9c75-c4e2da444635?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220801%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220801T043521Z&X-Amz-Expires=300&X-Amz-Signature=2ac9b6549db763c6ca8efefb92c19daf7a9628d6b55f0c718c039cbabaa989d8&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=13021798&response-content-disposition=attachment%3B%20filename%3Dgit-lfs-linux-amd64-v2.13.3.tar.gz&response-content-type=application%2Foctet-stream
remote: Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
remote: Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
remote: HTTP request sent, awaiting response... 200 OK
remote: Length: 4055224 (3.9M) [application/octet-stream]
remote: Saving to: ‘git-lfs.tar.gz’
remote: 
remote:      0K .......... .......... .......... .......... ..........  1% 11.9M 0s
remote:     50K .......... .......... .......... .......... ..........  2% 21.5M 0s
remote:    100K .......... .......... .......... .......... ..........  3% 15.2M 0s
remote:    150K .......... .......... .......... .......... ..........  5% 34.2M 0s
remote:    200K .......... .......... .......... .......... ..........  6% 85.2M 0s
remote:    250K .......... .......... .......... .......... ..........  7%  113M 0s
remote:    300K .......... .......... .......... .......... ..........  8% 79.6M 0s
remote:    350K .......... .......... .......... .......... .......... 10%  101M 0s
remote:    400K .......... .......... .......... .......... .......... 11%  138M 0s
remote:    450K .......... .......... .......... .......... .......... 12% 57.6M 0s
remote:    500K .......... .......... .......... .......... .......... 13% 97.1M 0s
remote:    550K .......... .......... .......... .......... .......... 15% 16.2M 0s
remote:    600K .......... .......... .......... .......... .......... 16%  151M 0s
remote:    650K .......... .......... .......... .......... .......... 17%  145M 0s
remote:    700K .......... .......... .......... .......... .......... 18%  132M 0s
remote:    750K .......... .......... .......... .......... .......... 20%  178M 0s
remote:    800K .......... .......... .......... .......... .......... 21%  150M 0s
remote:    850K .......... .......... .......... .......... .......... 22%  182M 0s
remote:    900K .......... .......... .......... .......... .......... 23%  116M 0s
remote:    950K .......... .......... .......... .......... .......... 25%  170M 0s
remote:   1000K .......... .......... .......... .......... .......... 26%  142M 0s
remote:   1050K .......... .......... .......... .......... .......... 27%  146M 0s
remote:   1100K .......... .......... .......... .......... .......... 29%  189M 0s
remote:   1150K .......... .......... .......... .......... .......... 30%  141M 0s
remote:   1200K .......... .......... .......... .......... .......... 31%  141M 0s
remote:   1250K .......... .......... .......... .......... .......... 32%  141M 0s
remote:   1300K .......... .......... .......... .......... .......... 34% 46.5M 0s
remote:   1350K .......... .......... .......... .......... .......... 35% 14.5M 0s
remote:   1400K .......... .......... .......... .......... .......... 36% 18.1M 0s
remote:   1450K .......... .......... .......... .......... .......... 37% 16.3M 0s
remote:   1500K .......... .......... .......... .......... .......... 39% 35.0M 0s
remote:   1550K .......... .......... .......... .......... .......... 40%  135M 0s
remote:   1600K .......... .......... .......... .......... .......... 41%  113M 0s
remote:   1650K .......... .......... .......... .......... .......... 42%  103M 0s
remote:   1700K .......... .......... .......... .......... .......... 44%  194M 0s
remote:   1750K .......... .......... .......... .......... .......... 45%  173M 0s
remote:   1800K .......... .......... .......... .......... .......... 46%  113M 0s
remote:   1850K .......... .......... .......... .......... .......... 47%  183M 0s
remote:   1900K .......... .......... .......... .......... .......... 49%  171M 0s
remote:   1950K .......... .......... .......... .......... .......... 50%  139M 0s
remote:   2000K .......... .......... .......... .......... .......... 51%  164M 0s
remote:   2050K .......... .......... .......... .......... .......... 53%  126M 0s
remote:   2100K .......... .......... .......... .......... .......... 54%  183M 0s
remote:   2150K .......... .......... .......... .......... .......... 55%  191M 0s
remote:   2200K .......... .......... .......... .......... .......... 56%  174M 0s
remote:   2250K .......... .......... .......... .......... .......... 58%  148M 0s
remote:   2300K .......... .......... .......... .......... .......... 59%  146M 0s
remote:   2350K .......... .......... .......... .......... .......... 60%  145M 0s
remote:   2400K .......... .......... .......... .......... .......... 61%  108M 0s
remote:   2450K .......... .......... .......... .......... .......... 63%  151M 0s
remote:   2500K .......... .......... .......... .......... .......... 64%  153M 0s
remote:   2550K .......... .......... .......... .......... .......... 65%  137M 0s
remote:   2600K .......... .......... .......... .......... .......... 66%  168M 0s
remote:   2650K .......... .......... .......... .......... .......... 68%  195M 0s
remote:   2700K .......... .......... .......... .......... .......... 69%  194M 0s
remote:   2750K .......... .......... .......... .......... .......... 70%  192M 0s
remote:   2800K .......... .......... .......... .......... .......... 71%  163M 0s
remote:   2850K .......... .......... .......... .......... .......... 73%  196M 0s
remote:   2900K .......... .......... .......... .......... .......... 74%  151M 0s
remote:   2950K .......... .......... .......... .......... .......... 75%  167M 0s
remote:   3000K .......... .......... .......... .......... .......... 77%  166M 0s
remote:   3050K .......... .......... .......... .......... .......... 78%  193M 0s
remote:   3100K .......... .......... .......... .......... .......... 79%  179M 0s
remote:   3150K .......... .......... .......... .......... .......... 80%  178M 0s
remote:   3200K .......... .......... .......... .......... .......... 82%  164M 0s
remote:   3250K .......... .......... .......... .......... .......... 83%  194M 0s
remote:   3300K .......... .......... .......... .......... .......... 84%  187M 0s
remote:   3350K .......... .......... .......... .......... .......... 85%  195M 0s
remote:   3400K .......... .......... .......... .......... .......... 87%  174M 0s
remote:   3450K .......... .......... .......... .......... .......... 88%  197M 0s
remote:   3500K .......... .......... .......... .......... .......... 89%  194M 0s
remote:   3550K .......... .......... .......... .......... .......... 90%  195M 0s
remote:   3600K .......... .......... .......... .......... .......... 92%  148M 0s
remote:   3650K .......... .......... .......... .......... .......... 93%  131M 0s
remote:   3700K .......... .......... .......... .......... .......... 94%  177M 0s
remote:   3750K .......... .......... .......... .......... .......... 95%  193M 0s
remote:   3800K .......... .......... .......... .......... .......... 97%  161M 0s
remote:   3850K .......... .......... .......... .......... .......... 98%  147M 0s
remote:   3900K .......... .......... .......... .......... .......... 99%  181M 0s
remote:   3950K ..........                                            100%  189M=0.05s
remote: 
remote: 2022-08-01 04:36:33 (79.6 MB/s) - ‘git-lfs.tar.gz’ saved [4055224/4055224]
remote: 
remote:        README.md
remote:        CHANGELOG.md
remote:        man/
remote:        man/git-lfs-clean.1
remote:        man/git-lfs-track.1
remote:        man/git-lfs-fetch.1.html
remote:        man/git-lfs-post-merge.1.html
remote:        man/git-lfs-env.1
remote:        man/git-lfs-uninstall.1.html
remote:        man/git-lfs-push.1.html
remote:        man/git-lfs-lock.1
remote:        man/git-lfs-clean.1.html
remote:        man/git-lfs-smudge.1
remote:        man/git-lfs-install.1.html
remote:        man/git-lfs-install.1
remote:        man/git-lfs-locks.1.html
remote:        man/git-lfs.1.html
remote:        man/git-lfs-prune.1
remote:        man/git-lfs-post-checkout.1.html
remote:        man/git-lfs-smudge.1.html
remote:        man/git-lfs-untrack.1
remote:        man/git-lfs-locks.1
remote:        man/git-lfs-migrate.1.html
remote:        man/git-lfs-env.1.html
remote:        man/git-lfs-fsck.1
remote:        man/git-lfs-migrate.1
remote:        man/git-lfs-ls-files.1.html
remote:        man/git-lfs-post-commit.1
remote:        man/git-lfs-ext.1
remote:        man/git-lfs-status.1.html
remote:        man/git-lfs-fetch.1
remote:        man/git-lfs-pull.1
remote:        man/git-lfs-untrack.1.html
remote:        man/git-lfs-prune.1.html
remote:        man/git-lfs-ls-files.1
remote:        man/git-lfs-pre-push.1.html
remote:        man/git-lfs.1
remote:        man/git-lfs-pointer.1
remote:        man/git-lfs-post-commit.1.html
remote:        man/git-lfs-track.1.html
remote:        man/git-lfs-logs.1.html
remote:        man/git-lfs-uninstall.1
remote:        man/git-lfs-config.5
remote:        man/git-lfs-update.1.html
remote:        man/git-lfs-update.1
remote:        man/git-lfs-clone.1
remote:        man/git-lfs-pointer.1.html
remote:        man/git-lfs-checkout.1.html
remote:        man/git-lfs-post-merge.1
remote:        man/git-lfs-clone.1.html
remote:        man/git-lfs-post-checkout.1
remote:        man/git-lfs-config.5.html
remote:        man/git-lfs-fsck.1.html
remote:        man/git-lfs-status.1
remote:        man/git-lfs-unlock.1.html
remote:        man/git-lfs-filter-process.1
remote:        man/git-lfs-lock.1.html
remote:        man/git-lfs-ext.1.html
remote:        man/git-lfs-push.1
remote:        man/git-lfs-pre-push.1
remote:        man/git-lfs-checkout.1
remote:        man/git-lfs-filter-process.1.html
remote:        man/git-lfs-pull.1.html
remote:        man/git-lfs-unlock.1
remote:        man/git-lfs-logs.1
remote:        git-lfs
remote:        install.sh
remote:        /tmp/codon/tmp/buildpacks/de37e887844785a1126d230ea56f2f216b506471
remote: -----> Download Git LFS assets
remote:        /tmp/build_284dcb93 /tmp/codon/tmp/buildpacks/de37e887844785a1126d230ea56f2f216b506471
remote:        git version 2.25.1
remote:        git-lfs/2.13.3 (GitHub; linux amd64; go 1.16.2; git a5e65851)
remote:        Initialized empty Git repository in /tmp/build_284dcb93/.git/
remote: From https://github.com/krisselberg/tiwebsite
remote:  * [new branch]      main       -> origin/main
remote: fatal: Could not parse object 'd1f07fc5c87a7c365ebf38fc560dfbeb5d5c35f6'.
remote:  !     Push rejected, failed to compile Git LFS app.
remote: 
remote:  !     Push failed
remote:  !
remote:  ! ## Warning - The same version of this code has already been built: d1f07fc5c87a7c365ebf38fc560dfbeb5d5c35f6
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version d1f07fc5c87a7c365ebf38fc560dfbeb5d5c35f6
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote: 
remote: Verifying deploy...
remote: 
remote: !       Push rejected to tigerinn.
remote: 
To https://git.heroku.com/tigerinn.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/tigerinn.git'

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.