Comments (5)
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.
@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.
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.
@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.
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)
- Add client-side validation of git variables
- Support adding `-match <pattern>` when calling git describe
- if there is no git user, using `${git:user}` kills the deploy
- Injected variables not included in `serverless print` HOT 2
- Refactor to use NodeGit HOT 1
- sporadic git command failed "git write-tree" HOT 15
- Git Command Fails - Suspected Timeout HOT 4
- Wrong values in env vars HOT 3
- "Rejects on bad git command" test fails
- Document isDirty HOT 1
- Display GIT_USER and GIT_EMAIL by default HOT 1
- Failing build when more then one tag points to commit HOT 4
- GIT_USER and GIT_EMAIL are not exported by default HOT 2
- Old version of babel-runtime with deprecated core-js HOT 4
- Feature request: Add support for commit subject HOT 1
- Staged changes are not counted as 'dirty' by git:isDirty HOT 1
- Approached unrecognized configuration variable sources: "git". HOT 7
- Not works for Windows HOT 1
- Integration with Serverless Framework v3 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-plugin-git-variables.