Giter VIP home page Giter VIP logo

Comments (16)

abiosoft avatar abiosoft commented on June 7, 2024 1

You're welcome.

And thanks @ekollof for this issue and fix :)

from caddy-git.

abiosoft avatar abiosoft commented on June 7, 2024

Oops, thanks for pointing that you. Do you mind submitting a PR for this ?

from caddy-git.

eripa avatar eripa commented on June 7, 2024

The change from PR #58 seem to break the plugin for me. I'm getting the below message in the log when Caddy tries to update the git repo. I just rebuilt Caddy with the plugin from the caddy homepage.

/usr/bin/env: ‘bash ’: No such file or directory
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
2017/05/12 06:36:44 exit status 1

The env command works fine in the shell:

$ /usr/bin/env bash --version
GNU bash, version 4.3.46(1)-release (x86_64-pc-linux-gnu)
$ which env
/usr/bin/env
$ which bash
/bin/bash

Distribution: Ubuntu 16.04.2 LTS x86_64

from caddy-git.

ekollof avatar ekollof commented on June 7, 2024

from caddy-git.

abiosoft avatar abiosoft commented on June 7, 2024

Oops. the whitespace most likely. Should be pushing a fix soonest.

from caddy-git.

abiosoft avatar abiosoft commented on June 7, 2024

I am unable to reproduce this both on Mac and on Linux.
Something looks weird here.

from caddy-git.

ekollof avatar ekollof commented on June 7, 2024

@eripa, what happens if you run /usr/bin/env bash in a terminal?

from caddy-git.

eripa avatar eripa commented on June 7, 2024

Strange indeed @abiosoft

@ekollof I updated the original post before, in summary it works fine.

from caddy-git.

abiosoft avatar abiosoft commented on June 7, 2024

I've downloaded from caddyserver.com, built from source and tested both on linux and windows for both private and public repositories and it works as expected.

from caddy-git.

eripa avatar eripa commented on June 7, 2024

@abiosoft What Linux dist are you using? (mostly thinking about the init system)

from caddy-git.

abiosoft avatar abiosoft commented on June 7, 2024

Good point. I was just using containers based off Alpine. Let me try using an Ubuntu 16.0.4.2 image.

from caddy-git.

ekollof avatar ekollof commented on June 7, 2024

I do know Ubuntu is a bit weird when it comes to bash, with them using dash as a default shell. But still, that shouldn't break env. Unless if they mess with the ${PATH}

from caddy-git.

eripa avatar eripa commented on June 7, 2024

Ok, I'm thinking maybe it's some systemd environment configuration weirdness. Alpine is much more straight forward!

from caddy-git.

abiosoft avatar abiosoft commented on June 7, 2024

I just tried in an ubuntu 16.04 image as well. Also works.

Can you try with another distro. While at that. I'll push out a minor fix (remove a whitespace that I do not expect to cause problems) and let me know if that changes anything.

from caddy-git.

abiosoft avatar abiosoft commented on June 7, 2024

@eripa I've successfully deployed the fix for whitespace removal. Can you try again now ?

from caddy-git.

eripa avatar eripa commented on June 7, 2024

Quite strange that it didn't work on my Ubuntu.

@abiosoft your commit fixed the issue, thanks a lot!

from caddy-git.

Related Issues (20)

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.