Skip to content
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

Explicitly declare and restrict sh dependency to < 2.0.0, and also declare other dependencies that is directly imported #99

Merged
merged 3 commits into from
Feb 24, 2023

Conversation

felixfontein
Copy link
Collaborator

No description provided.

@felixfontein felixfontein changed the title Explicitly declare and restrict sh dependency to < 2.0.0 Explicitly declare and restrict sh dependency to < 2.0.0, and also declare other dependencies that is directly imported Feb 10, 2023
@gotmax23 gotmax23 self-assigned this Feb 24, 2023
# sh v2 has breaking changes.
# https://github.com/ansible-community/antsibull-core/issues/34
sh = ">= 1.0.0 < 2.0.0"
pydantic = "*"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pydantic is the subject of a major rewrite. We might want to pin this to < 2.0.0.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In any case, this constraint should be the same between antsibull-docs and and antsibull-core.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a good idea. I'll create a follow-up for that (later today or tomorrow).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One annoying thing is that pydantic does not adhere to semver, so < 2.0.0 does not prevent breaking changes. But restricting this more is not a good idea either, IMO...

@felixfontein felixfontein merged commit 2ed58c4 into ansible-community:main Feb 24, 2023
@felixfontein felixfontein deleted the sh branch February 24, 2023 13:50
@felixfontein
Copy link
Collaborator Author

@gotmax23 thanks for reviewing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants