gitversion | A helper for bumping versions via git tags | Build Tool library

 by   screwdriver-cd Go Version: v1.1.14 License: Non-SPDX

kandi X-RAY | gitversion Summary

kandi X-RAY | gitversion Summary

gitversion is a Go library typically used in Utilities, Build Tool, NPM applications. gitversion has no bugs, it has no vulnerabilities and it has low support. However gitversion has a Non-SPDX License. You can download it from GitHub.

A helper for bumping versions via git tags.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              gitversion has a low active ecosystem.
              It has 27 star(s) with 11 fork(s). There are 18 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              gitversion has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of gitversion is v1.1.14

            kandi-Quality Quality

              gitversion has 0 bugs and 0 code smells.

            kandi-Security Security

              gitversion has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              gitversion code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              gitversion has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              gitversion releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              It has 884 lines of code, 44 functions and 6 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed gitversion and discovered the below as its top functions. This is intended to give you an instant insight into gitversion implemented functionality, and help decide if they suit your requirements.
            • main is the main entry point for testing
            • Bump the version of the given prefix
            • FromString creates a Version from a string
            • versions returns a list of versions with the given prefix .
            • LastCommit returns the last commit .
            • Tagged returns true if the current commit is in the last commit .
            • Tags returns a list of tag names .
            • LastCommitMessage returns last commit message
            • Tag adds a tag to the container
            • Returns the highest version .
            Get all kandi verified functions for this library.

            gitversion Key Features

            No Key Features are available at this moment for gitversion.

            gitversion Examples and Code Snippets

            No Code Snippets are available at this moment for gitversion.

            Community Discussions

            QUESTION

            K8s Containers dont start ImagePullBackOff, ErrImagePull
            Asked 2022-Apr-02 at 14:30

            I am trying to start up a couple of containers locally using k8s but container creation is stopped cause of ImagePullBackOff, ErrImagePull. The yaml is fine, tested it on another workstation. And i can pull images using regular docker. But it fails in k8s/minikube environment

            Error container logs is

            ...

            ANSWER

            Answered 2022-Apr-02 at 13:06

            It is a kind of workaround for the problem, if you can pull image using docker pull then do it on all the worker nodes and then add an

            ImagePullPolicy:IfNotPresent

            inside the yamls where you are mentioning image name, then k8s will first check whether it is present inside the machine and if yes then directly use it

            Source https://stackoverflow.com/questions/71717543

            QUESTION

            How to integrate Gitversion
            Asked 2022-Mar-31 at 13:10

            I would like to integrate an automated versioning system in my ASP.NET project. For each release, it should have a version number based on the previous release. I am planning to integrate Gitversion https://gitversion.net/. Does anyone use it in your projects? For the CI/CD pipeline we have teamcity and octopus deploy.

            What is the best practice for automated software release versions?

            Thanks in advance

            ...

            ANSWER

            Answered 2022-Mar-31 at 13:10

            As one of the maintainers of GitVersion, I'm obviously biased, but since you're asking how to use GitVersion to implement a "best practice for automated software release", I'm going to unashamedly give you a textual description of a talk I've done on how I prefer to version and release software with GitVersion, TeamCity and Octopus Deploy.

            Developer Workflow

            The first thing you should figure out is what kind of developer workflow you want for your software. GitVersion supports Git Flow and many simplified variants of it, and GitHub Flow (as well as many other trunk based development flows). Which workflow you should choose depends on what type of software you are developing, your team and most importantly; your personal preference.

            Once you have chosen your workflow, you can configure which mode GitVersion should operate under.

            Version Source

            GitVersion works by calculating a version number from your Git repository. This means that you should not commit a version number to Git in any shape or form. Not within a package.json, pom.xml, .csproj, or any other build- or project-related file that often mandates the existence of a version number.

            Versioning

            Instead, you should allow GitVersion to produce a version number based on the Git history, using the currently checked out commit as its starting point, and searching through the parents and their tags to calculate an appropriate version number for the current commit. This version number can then be used in any way you want in your build pipeline. You can, for instance, write GitVersion's FullSemVer variable to package.json by executing the following command:

            Source https://stackoverflow.com/questions/71632279

            QUESTION

            kubectl versions Error: exec plugin is configured to use API version client.authentication.k8s.io/v1alpha1
            Asked 2022-Mar-28 at 09:41

            I was setting up my new Mac for my eks environment. After the installation of kubectl, aws-iam-authenticator and the kubeconfig file placement in default location. I ran the command kubectl command and got this error mentioned below in command block.

            My cluster uses v1alpha1 client auth api version so basically i wanted to use the same one in my Mac as well.

            I tried with latest version (1.23.0) of kubectl as well, still the same error. Whereas When i tried to do with aws-iam-authenticator (version 0.5.5) I was not able to download lower version.

            Can someone help me to resolve it?

            ...

            ANSWER

            Answered 2022-Mar-28 at 09:41

            I have the same problem

            You're using aws-iam-authenticator 0.5.5, AWS changed the way it behaves in 0.5.4 to require v1beta1.

            It depends on your configuration, but you can try to change the K8s context you're using to v1beta1

            Otherwise switch back to aws-iam-authenticator 0.5.3 - you might need to build it from source if you're using the M1 architecture as there's no darwin-arm64 binary built for it

            Source https://stackoverflow.com/questions/71318743

            QUESTION

            kubectl keeps asking for login every command
            Asked 2022-Mar-26 at 16:53

            What happened: We're on AKS with RBAC enabled. Executing any kubectl/helm command that connects to the k8s cluster, I have to reauthenticate. Output:

            To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXX to authenticate. This succeeds but then when I execute the next kubectl command I have to reauthenticate again.

            What you expected to happen: Authenticate and use that token for more than one command.

            How to reproduce it (as minimally and precisely as possible):

            Get credentials and then execute any kubectl command.

            Anything else we need to know?:

            Environment:

            ...

            ANSWER

            Answered 2022-Mar-26 at 16:53

            I recommend using az login An auth token is cached locally on your environment and should give you access to your Kubernetes cluster.

            Then follow the Microsoft docs to install kubectl.

            Source https://stackoverflow.com/questions/71628308

            QUESTION

            Minikube : remote error tls: bad certificate
            Asked 2022-Mar-20 at 10:02

            I'm following a Kubernetes tutorial, and cannot run first command (minikube start --vm-driver=hyperkit). I'm using a MacBook Pro Intel on macOs Monterey. I cannot make it work because of TLS error.

            ...

            ANSWER

            Answered 2022-Mar-20 at 10:02

            The kubectl version error helped : Unable to connect to the server: dial tcp i/o time out

            It seems I had already played with k8s :

            Source https://stackoverflow.com/questions/71542604

            QUESTION

            Error view Index.cshtml not found for ASP.NET Core 6 MVC app when build on Azure build agent
            Asked 2022-Feb-21 at 14:42

            I get an error "View Index.cshtml not found" for my ASP.NET Core 6 MVC app when building it on Azure build agent, but when building locally, it is working fine.

            I tried same command which is executed on build agent still could not get the issue. Tried several code changes to fix this issue but still no clues. Searched on net even on stackoverflow but sadly no solution works.

            Please someone help me out.

            I am using following input in pipeline.yaml:

            ...

            ANSWER

            Answered 2022-Jan-11 at 11:56

            Please use following command in pipeline.yaml hope it should work.

            Source https://stackoverflow.com/questions/70661849

            QUESTION

            How to overrun the secret size limitation in kube-prometheus-stack helm chart if we add more and more provisioned dashboard as separate yml files?
            Asked 2022-Feb-21 at 09:21

            For the kube-prometheus-stack we added more and more dashboards config to /grafana/dashboards folder to have more and more provisioned dashboards.

            And then in one day we've done this:

            ...

            ANSWER

            Answered 2022-Feb-19 at 18:36

            Secret ... is invalid: data: Too long: must have at most 1048576 bytes

            This is a well known limitation of Kubernetes secrets (version 1.23 at the moment). The official k8s documentation says:

            Individual secrets are limited to 1MiB in size. This is to discourage creation of very large secrets which would exhaust the API server and kubelet memory. However, creation of many smaller secrets could also exhaust memory. More comprehensive limits on memory usage due to secrets is a planned feature.

            So, first of all, check if some unnecessary files/dirs are stored in your chart directories and remove them. I am sure you have already removed all unnecessary files.

            To address such issues Helm introduced an SQL storage backend:

            Using such a storage backend is particularly useful if your release information weighs more than 1MB (in which case, it can't be stored in Secrets because of internal limits in Kubernetes).

            To enable the SQL backend, you'll need to deploy a SQL database and set the environmental variable HELM_DRIVER to sql. The DB details are set with the environmental variable HELM_DRIVER_SQL_CONNECTION_STRING.

            You can set it in a shell as follows:

            Source https://stackoverflow.com/questions/71159109

            QUESTION

            Kubernetes on docker for windows, persistent volume with hostPath gives Operation not permitted
            Asked 2022-Feb-10 at 14:53

            I am trying to connect a folder in windows to a container folder. This is for a .NET app that needs to read files in a folder. In a normal docker container, with docker-compose, the app works without problems, but since this is only one of several different apps that we will have to monitor, we are trying to get kubernetes involved. That is also where we are failing. As a beginner with kubernetes, I used kompose.exe to convert the compose files to kuberetes style. However, no matter if I use hostPath or persistentVolumeClaim as a flag, I do not get things to work "out of the box". With hostPath, the path is very incorrect, and with persistentVolumeClaim I get a warning saying volume mount on the host is not supported. I, therefore, tried to do that part myself but can get it to work with neither persistent volume nor entering mount data in the deployment file directly. The closest I have come is that I can enter the folder, and I can change to subfolders within, but as soon as I try to run any other command, be it 'ls' or 'cat', I get "Operation not permitted". Here is my docker compose file, which works as expected by

            ...

            ANSWER

            Answered 2022-Feb-08 at 05:19

            Thanks to RadekW, the problem is now solved. The path should be written as /run/desktop/mnt/host/c/PATH/TO/FILE, and in my case: /run/desktop/mnt/host/c/temp/testfiles. If I find any documentation about this, I will add a source.

            Source https://stackoverflow.com/questions/71018631

            QUESTION

            Readiness fails in the Eclipse Hono pods of the Cloud2Edge package
            Asked 2022-Feb-09 at 06:58

            I am a bit desperate and I hope someone can help me. A few months ago I installed the eclipse cloud2edge package on a kubernetes cluster by following the installation instructions, creating a persistentVolume and running the helm install command with these options.

            ...

            ANSWER

            Answered 2022-Feb-09 at 06:58

            based on the iconic Failed to create SSL Connection output in the logs, I assume that you have run into the dreaded The demo certificates included in the Hono chart have expired problem.

            The Cloud2Edge package chart is being updated currently (https://github.com/eclipse/packages/pull/337) with the most recent version of the Ditto and Hono charts (which includes fresh certificates that are valid for two more years to come). As soon as that PR is merged and the Eclipse Packages chart repository has been rebuilt, you should be able to do a helm repo update and then (hopefully) succesfully install the c2e package.

            Source https://stackoverflow.com/questions/71034254

            QUESTION

            TeamCity - GitVersion generates the build number unexpected
            Asked 2022-Feb-03 at 15:13

            I have the git commits and the tags as below

            The tag of the latest commit is 12.0.0-beta.6. When I run GitVersion, the result is as below

            So the build number on TeamCity should be 12.0.0-beta.6, but I don't know why the GitVersion generates build number 12.0.0-beta.6+8 on TeamCity.

            My build steps are as below

            Does anyone know why GitVersion generates the redundant "+8" after the FullSemVer? How to remove this dedundant "+8"? Thank you very much.

            ...

            ANSWER

            Answered 2022-Jan-18 at 06:51

            Read carefully and understand at least part of GitVerson docs (paragraphs 1+2)

            The shortest possible extraction

            GitVersion will increment the metadata for each build so you can tell builds apart. For example, 1.0.0+5 followed by 1.0.0+6. It is important to note that build metadata is not part of the semantic version; it is just metadata!

            Source https://stackoverflow.com/questions/70750665

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install gitversion

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/screwdriver-cd/gitversion.git

          • CLI

            gh repo clone screwdriver-cd/gitversion

          • sshUrl

            git@github.com:screwdriver-cd/gitversion.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Build Tool Libraries

            Python-100-Days

            by jackfrued

            webpack

            by webpack

            parcel

            by parcel-bundler

            esbuild

            by evanw

            composer

            by composer

            Try Top Libraries by screwdriver-cd

            screwdriver

            by screwdriver-cdJavaScript

            guide

            by screwdriver-cdRuby

            ui

            by screwdriver-cdJavaScript

            launcher

            by screwdriver-cdGo

            models

            by screwdriver-cdJavaScript