Code Monkey home page Code Monkey logo

Comments (5)

jacob-meacham avatar jacob-meacham commented on May 26, 2024 2

Hi @ManfredLange sorry for the delay! I just released 3.3.1 which should fix this issue (if you're curious, you can find the PR here: #26

from serverless-plugin-git-variables.

jacob-meacham avatar jacob-meacham commented on May 26, 2024

@ManfredLange thanks for the report and sorry for the trouble! I missed the dependency on basename when I was reviewing the PR. A question though - I wouldn't expect this to break anything unless you were trying to use the new repository field. Is that the case?

from serverless-plugin-git-variables.

ManfredLange avatar ManfredLange commented on May 26, 2024

The variables we use in serverless.yml are as follows:

  • git:branch
  • git:describe
  • git:sha1

We don't use any other variables.

The complete line that uses these is for a stackTag that we use in the deployment (with <org> and <repo-name> replaced with correct values):

git-info: "${git:branch} - ${git:describe} - ${git:sha1} - repo: https://github.com/<org>/<repo-name>"

My hunch regarding this issue: It could be caused by missing double quotes for a issuing a command. Nodejs on Windows can be a bit funny with that, e.g. when a command involves whitespaces. We often have to put double quotes around commands that in particular contain file names or paths.

from serverless-plugin-git-variables.

ManfredLange avatar ManfredLange commented on May 26, 2024

@jacob-meacham Hi, just a quick question: Do you happen to have an ETA for a release that fixes this issue?

I have never created a serverless plug-in or worked on the source of one. Do you happen to have a link to good instructions for how to set up a development environment for that? If I find time, I might try creating a PR to resolve this issue. Perhaps you could point me to the place in the codebase (filename, line number) that might cause this problem? Thank you!

from serverless-plugin-git-variables.

ManfredLange avatar ManfredLange commented on May 26, 2024

Just confirmed: This issue has been resolved with version 3.3.1. Thank you! @jacob-meacham !

Keep up the great work! This is really a very useful plugin for serverless framework.

from serverless-plugin-git-variables.

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.