-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue building from branch of git repo context #1934
Comments
@dustymabe I'm able to replicate it. It looks like the last bit of the context directory |
I know what's happening, the code is in essence doing:
which returns:
I need to change the code in Buildah that does the
Hopefully can get that out for review later today. |
+1 - thanks |
If the context directory was specified as a git repo with a branch reference ala ``` ``` The internal `git clone` command executed by buildah would fail as the `#master` branch specification needed to be removed and specified with the `-b` option like: ``` git clone -b master git://github.com/containers/skopeo /var/tmp/buildah12332 ``` rather than: ``` git clone git://github.com/containers/skopeo#master /var/tmp/buildah12332 ``` Addresses containers#1934 Signed-off-by: TomSweeneyRedHat <[email protected]>
If the context directory was specified as a git repo with a branch reference ala ``` buildah bud --layers -t test git://github.com/containers/skopeo#master ``` The internal `git clone` command executed by buildah would fail as the `#master` branch specification needed to be removed and specified with the `-b` option like: ``` git clone -b master git://github.com/containers/skopeo /var/tmp/buildah12332 ``` rather than: ``` git clone git://github.com/containers/skopeo#master /var/tmp/buildah12332 ``` Addresses containers#1934 Signed-off-by: TomSweeneyRedHat <[email protected]>
If the context directory was specified as a git repo with a branch reference ala ``` buildah bud --layers -t test git://github.com/containers/skopeo#master ``` The internal `git clone` command executed by buildah would fail as the `#master` branch specification needed to be removed and specified with the `-b` option like: ``` git clone -b master git://github.com/containers/skopeo /var/tmp/buildah12332 ``` rather than: ``` git clone git://github.com/containers/skopeo#master /var/tmp/buildah12332 ``` Addresses #1934 Signed-off-by: TomSweeneyRedHat <[email protected]> Closes: #1941 Approved by: rhatdan
Since #1941 is merged, this issue is fixed upstream |
If the context directory was specified as a git repo with a branch reference ala ``` buildah bud --layers -t test git://github.com/containers/skopeo#master ``` The internal `git clone` command executed by buildah would fail as the `#master` branch specification needed to be removed and specified with the `-b` option like: ``` git clone -b master git://github.com/containers/skopeo /var/tmp/buildah12332 ``` rather than: ``` git clone git://github.com/containers/skopeo#master /var/tmp/buildah12332 ``` Addresses containers#1934 Signed-off-by: TomSweeneyRedHat <[email protected]> Closes: containers#1941 Approved by: rhatdan
I'm having an issue trying to specify a branch to build from like described here under Build Syntax Suffix.
Here is an example where I am trying to build from the
dusty
branch:Sorry for being brief but I don't have much time right now to provide all the information needed.
Version Info
Output of
podman info
:The text was updated successfully, but these errors were encountered: