-
Notifications
You must be signed in to change notification settings - Fork 65
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
charm-build --write-lock-file fails to pick up master branch for interface:ceph-mds #604
Comments
The reason is fails to pick up the branch is due to
where def get_branch_for_revision(self, dir_, revision=None):
"""Returns None if the revision doesn't match the actual branch name"""
print("get_branch_for_revision:", dir_)
if revision is None:
revision = self.revision
if not revision:
print("... no revision?", revision)
return None
for cmd in ("git branch --contains {} --format=\"%(refname)\""
.format(revision), ):
try:
branch = check_output(cmd, cwd=dir_).decode('UTF-8').strip()
return branch
except FetchError as e:
print("... got error: ", e)
continue
return None The fix will have to be to call |
The python lib pins are for py35 compatability. The branch issue is due to bug juju/charm-tools#604 * Also add cffi pin for py35 for charm-tools build support. Change-Id: I2ac189816b1e133ff8468d4722ce87da48b85c0b
Due to juju/charm-tools#604 writing the build.lock fails when the interface:ceph-mds file is in the build. Update the build.lock with the commit as the branch. Change-Id: I4ad693c87e2dbcdcec2eba316ababdd5449e5e67
* Also add cffi pin for py35 for charm-tools build support. * This charm is broken at this state (as a 21.10 candidate), but will be fixed via a cherry pick of I4e63e64612554d74ffaca5c4e07b90f7ceb88d59 which resolves the hacluster 'common.py' import and also restarting services after config-changed. This is juju/charm-tools#604. Change-Id: I00f4bc8251d9dc5e8f082539dfff96b972e115d2
Due to juju/charm-tools#604 writing the build.lock fails when the interface:ceph-mds file is in the build. Update the build.lock with the commit as the branch. Change-Id: I4ad693c87e2dbcdcec2eba316ababdd5449e5e67
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
Adding a
build.lock
file is done withcharm-build --log-level DEBUG --write-lock-file …
This creates the
build.lock
file and records the branch against the git hash for the repository for the layer/interface. However, it's doesn't seem to record a branch forinterface:ceph-mds
which results in bug #603 if the build.lock is attempted to be build using branches.I expect/expected the following
I expected the branch
refs/heads/master
to be recorded againstinterface:ceph-mds
What I got
Contrast with:
The text was updated successfully, but these errors were encountered: