-
Notifications
You must be signed in to change notification settings - Fork 29
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
weird namespacing generated for local collection #68
Comments
Running |
Actually the namespacing with weird paths seems normal, the problem is that is also getting rendered in the README.rst file, which doesn’t seem normal. This only seems to apply when all modules have the same ‘version_added’ as the version that we are releasing. Any insights as to why? |
Hmm, utterly confused now - looking at other collections that utilize this library, I don't think these make much sense:
What am I doing wrong? |
I've tried deleting |
I'm not sure what you mean with Which version of ansible-core do you have installed? Is it also installed in the venv, and/or also outside the venv? Do you have symlinks in your Ansible collection paths? Anything that will help me reproduce this would be useful. In any case, you can always modify the generated changelogs/changelog.yaml by replacing this wrong namespace with |
Yes, I think that's what you mean? # config.yml
changelog_filename_template: ../CHANGELOG.rst
No idea how to check that, shouldn't have, but could be.
I'll try that. Thanks @felixfontein ! |
Another question: which version of antsibull-changelog are you using? |
(And is antsibull-changelog installed in the venv, outside the venv, or both?) |
Both antsibull-changelog in venv: antsibull-changelog global: |
This workaround is OK, but we're still having |
@SHxKM that file is a local cache, there is no reason to check it in at all (see for example https://github.com/ansible-collections/collection_template/blob/main/.gitignore#L2). |
Can you check whether #69 fixes the strange namespace issues you are getting? |
Running:
Yields the following error:
EDIT, had to run this since I nuked the
Will update |
@felixfontein seems to fix it, just want to verify with you the following:
If this looks OK to you then I think we got a solution! |
When you set
Looks good an as expected! The namespace in .plugin-cache.yml and in changelogs/changelog.yaml should always be empty or not present/ |
just to be completely on the safe side here. In my example above we’re talking about a module not a plugin, or is that inclusive? |
The problem only happens with modules, so your example suffices. |
I was referring to this line:
I was wondering if it should always be not-present/empty for modules. Thanks a bunch for taking care of this! |
It should always be empty for modules, except (as I wrote above) in collections like community.general and community.network which split up their plugins/modules/ folders. |
Hi,
We're developing and testing a (new) local collection. We have renamed the collection (not the namespace) it but AFAIK have adjusted folder names, etc...we have also deleted
changelogs
andREADME.rst
, and ran:antsibull-changelog init .
Again, from the collection's root folder.
But now when we do:
antsibull-changelog release
The
README.rst
andchangelogs.yml
point to weird namespaces, example:I wonder if this is because I'm running antsibull from the same Python env where I also have the collection installed locally, so it is finding the wrong path somehow??
The text was updated successfully, but these errors were encountered: