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

add helper for discovering and aliasing system architecture #29

Open
ca-scribner opened this issue Jun 17, 2024 · 0 comments
Open

add helper for discovering and aliasing system architecture #29

ca-scribner opened this issue Jun 17, 2024 · 0 comments

Comments

@ca-scribner
Copy link
Contributor

Several of our charms do something like this for architecture discovery:

        arch = platform.processor()
        if arch in ["x86_64", "amd64"]:
            self._arch = "amd64"
        elif arch in ["aarch64", "arm64", "armv8b", "armv8l"]:
            self._arch = "arm64"
        else:
            self._arch = arch

Examples (note that they don't all map to the same final arch alias names):

We should decide on one common method and include it here as a helper.

@ca-scribner ca-scribner changed the title add helper for handling aliases of common equivalent architectures add helper for discovering and aliasing system architecture Jun 17, 2024
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

No branches or pull requests

1 participant