Skip to content

kbld does not work with git error messages set to a different language #213

Open
@Rock981119

Description

I use brew install kbld, Version 0.32.0.

Here is my input Yaml file:
Deploy.yaml

#@ scaling_factor = 2
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: go-http-svr
  labels:
    app: http-svr
spec:
  replicas: #@ scaling_factor
  selector:
    matchLabels:
      app: http-svr
  template:
    metadata:
      labels:
        app: http-svr
    spec:
      containers:
      - name: go-http-svr
        image: rock981119/go-http:gitlabv1
        ports:
        - containerPort: 9000

kbld.yaml

---
apiVersion: kbld.k14s.io/v1alpha1
kind: Sources
sources:
- image: rock981119/go-http:gitlabv1
  path: .

---
apiVersion: kbld.k14s.io/v1alpha1
kind: ImageDestinations
destinations:
- image: rock981119/go-http:gitlabv1
  newImage: rock981119/go-http

command line execution:

kbld -f kbld.yaml -f Deploy.yaml

error message:

kbld: Error:
- Resolving image 'rock981119/go-http:gitlabv1': Getting details from git for directory '/Users/zangr/Desktop/Temp/Linux/demo-go-ci': Checking HEAD tags: exit status 128 (stderr 'fatal: 没有发现名称,无法描述任何东西。
')

Chinese part is 'No name found, can't describe anything'

At the same time, I did the same test in the Linux (PhotonOS) environment and it was successful.

My MacOS Version: 11.6.2

Metadata

Assignees

No one assigned

    Labels

    bugThis issue describes a defect or unexpected behaviorcarvel acceptedThis issue should be considered for future work and that the triage process has been completedpriority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.

    Type

    No type

    Projects

    • Status

      To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions