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
When rebuilding with --use-lock-file-branches, I'd expect it to ignore the null branch and use the commit hash instead.
What I got
charm-build crashed with:
make_url_from_lock_for_layer: {'type': 'layer', 'item': 'interface:ceph-mds', 'url': 'https://opendev.org/openstack/charm-interface-ceph-client.git', 'vcs': None, 'branch': None, 'commit': '72245e1d002fb9c65c9574d65b5952275b3411fb'} True
Traceback (most recent call last):
File "/home/alex/Projects/Canonical/git/github.com/juju/charm-tools/venv/bin/charm-build", line 11, in <module>
load_entry_point('charm-tools', 'console_scripts', 'charm-build')()
File "/home/alex/Projects/Canonical/git/github.com/juju/charm-tools/charmtools/build/builder.py", line 1195, in main
build()
File "/home/alex/Projects/Canonical/git/github.com/juju/charm-tools/charmtools/build/builder.py", line 834, in __call__
self.generate()
File "/home/alex/Projects/Canonical/git/github.com/juju/charm-tools/charmtools/build/builder.py", line 771, in generate
layers = self.fetch()
File "/home/alex/Projects/Canonical/git/github.com/juju/charm-tools/charmtools/build/builder.py", line 306, in fetch
return self.fetch_deps(self.top_layer)
File "/home/alex/Projects/Canonical/git/github.com/juju/charm-tools/charmtools/build/builder.py", line 311, in fetch_deps
self.fetch_dep(layer, results)
File "/home/alex/Projects/Canonical/git/github.com/juju/charm-tools/charmtools/build/builder.py", line 343, in fetch_dep
results["interfaces"].append(iface.fetch())
File "/home/alex/Projects/Canonical/git/github.com/juju/charm-tools/charmtools/build/builder.py", line 99, in fetch
url = make_url_from_lock_for_layer(
File "/home/alex/Projects/Canonical/git/github.com/juju/charm-tools/charmtools/build/builder.py", line 982, in make_url_from_lock_for_layer
if branch.startswith("refs/heads/"):
AttributeError: 'NoneType' object has no attribute 'startswith'
(Extra debug added at top to work out what was going on).
I'll file a separate bug as to why the option --write-lock-file didn't pick up the branch (which should be refs/heads/master) for the interface.
The text was updated successfully, but these errors were encountered:
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
- ensure stable/21.04 branch for charms.openstack
- ensure stable/21.04 branch for charm-helpers
* Manual fix to build.lock to work around bug [1]
[1] juju/charm-tools#603
Change-Id: I6be25d404436647a19e18231ccd0985dd49bb858
* Update charm-ceph-fs from branch 'master'
to 46797fc9869d86352e513aa4f7a26c0d9ab3c6ec
- 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
- ensure stable/21.04 branch for charms.openstack
- ensure stable/21.04 branch for charm-helpers
* Manual fix to build.lock to work around bug [1]
[1] juju/charm-tools#603
Change-Id: I6be25d404436647a19e18231ccd0985dd49bb858
Checklist
What version am I running?
I ran the following command:snap info charm
and got the following ouput:I'm using the PiPy version: "charm-tools 2.8.3"
I am using: Ubuntu 20.04
Issue/Feature
The charm-build command with --write-lock-file built a lock file for
interface:ceph-mds
with:I expect/expected the following
When rebuilding with
--use-lock-file-branches
, I'd expect it to ignore thenull
branch and use the commit hash instead.What I got
charm-build crashed with:
(Extra debug added at top to work out what was going on).
I'll file a separate bug as to why the option
--write-lock-file
didn't pick up the branch (which should berefs/heads/master
) for the interface.The text was updated successfully, but these errors were encountered: