You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirmed this is an issue with charm-tools, not charmstore-client
Provide versions of tools used
Described the feature or ways to replicate the issue
What version am I running?
I ran the following command: snap info charm and got the following ouput:
charm-tools 2.8.3 from PyPi
I am using: Ubuntu 20.04
Issue/Feature
The charm-build --write-lock-file command produces a build.lock file to lock the layers and python modules. For git repositories, it attempts to get the branch for the git hash so that the --use-lock-file-branches option can rebuild from the head of a branch, rather than be locked to a commit hash.
I expect/expected the following
If the branch selected is also pointing to another branch (say master) then I expect just the branch to be selected.
i.e. the branch points to master and to stable/21.04. It should probably only point to stable/21.04.
This then breaks rebuilds as the branch isn't a single branch!
Options
Filter out refs/heads/master (and refs/heads/main) from the list.
If more than one branch remains, then exit the build.
However, that doesn't seem terribly useful.
This is currently a "problem" with python modules that spec it as git+https://... with a @branch#egg=... option to specify the branch. We should probably feed this into the detection of the branch to select it specifically. Not entirely sure how to do this.
As an interim fix, do the first option just to keep things going.
The text was updated successfully, but these errors were encountered:
Due to juju/charm-tools#606 the build.lock
contained the wrong branch info. This fixes it to stable, and will
allow it to push.
* Also add cffi pin for py35 for charm-tools build support.
Change-Id: I278fa07c38d58cb29bbe81e4ad6fdd0901600f0a
Checklist
What version am I running?
I ran the following command:snap info charm
and got the following ouput:charm-tools 2.8.3 from PyPi
I am using: Ubuntu 20.04
Issue/Feature
The
charm-build --write-lock-file
command produces abuild.lock
file to lock the layers and python modules. For git repositories, it attempts to get the branch for the git hash so that the--use-lock-file-branches
option can rebuild from the head of a branch, rather than be locked to a commit hash.I expect/expected the following
If the branch selected is also pointing to another branch (say
master
) then I expect just the branch to be selected.What I got
An example of the problem is:
i.e. the branch points to
master
and tostable/21.04
. It should probably only point tostable/21.04
.This then breaks rebuilds as the branch isn't a single branch!
Options
refs/heads/master
(andrefs/heads/main
) from the list.However, that doesn't seem terribly useful.
This is currently a "problem" with python modules that spec it as
git+https://...
with a@branch#egg=...
option to specify the branch. We should probably feed this into the detection of the branch to select it specifically. Not entirely sure how to do this.As an interim fix, do the first option just to keep things going.
The text was updated successfully, but these errors were encountered: