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

Include architecture in alternate selection #202

Closed
jameshclrk opened this issue Feb 22, 2020 · 4 comments
Closed

Include architecture in alternate selection #202

jameshclrk opened this issue Feb 22, 2020 · 4 comments
Assignees
Labels
Projects

Comments

@jameshclrk
Copy link
Contributor

jameshclrk commented Feb 22, 2020

Is your feature request related to a problem? Please describe.

Some dotfiles may change on architecture of the machine. This allows this to work with the alternate system.

Describe the solution you'd like

Expand the alternate section to consider the architecture of the machine.

##CLASS.ARCH.OS.HOSTNAME.USER
##CLASS.ARCH.OS.HOSTNAME
##CLASS.ARCH.OS
##CLASS.ARCH
##CLASS
##ARCH.OS.HOSTNAME.USER
##ARCH.OS.HOSTNAME
##ARCH.OS
##ARCH
##

Describe alternatives you've considered

Classes could allow this to work, however you may want a class and an arch.

Additional context

See PR #203

@erijo
Copy link
Contributor

erijo commented Dec 30, 2020

@jameshclrk: can you please elaborate about the use-case for this (as queried in #203)?

@xenoterracide
Copy link

xenoterracide commented Jan 5, 2021

I can think of one (that's not an actual problem for me yet, and I only really use x64 now). here's what I'm trying to do with yadm currently

  1. clone yadm repo
  2. yadm bootstrap
  3. bootstrap installs from system package manager and zinit
  4. zinit installs user only software
  5. some user software may install other software
  6. profit (my system is fully installed and configured)

if I were using a 32 bit system, or needed a cross compiler, I might need that information. I do not however have this need currently.

@juodumas
Copy link

juodumas commented Jan 5, 2021

Managing any kind of binaries with yadm screams for an arch config option. On the other hand yadm config local.class arch=$(uname -m) in bootstrap works fine.

@TheLocehiliosan
Copy link
Owner

This feature has been merged into the develop branch, and will be part of the next release.

3.2.1 automation moved this from To do to Done Dec 23, 2021
TheLocehiliosan added a commit that referenced this issue Feb 21, 2022
* Support architecture for alternates/templates (#202, #203, #393)
* Support distro_family for alternates/templates (#213)
* Support setting multiple classes (#185, #304)
* Support environment variables in default template processor (#347)
* Update version command to include Bash & Git versions (#377)
TheLocehiliosan added a commit that referenced this issue Mar 12, 2022
* Support architecture for alternates/templates (#202, #203, #393)
* Support distro_family for alternates/templates (#213)
* Support setting multiple classes (#185, #304)
* Support environment variables in default template processor (#347)
* Update version command to include Bash & Git versions (#377)
TheLocehiliosan added a commit that referenced this issue Mar 16, 2022
* Support architecture for alternates/templates (#202, #203, #393)
* Support distro_family for alternates/templates (#213)
* Support setting multiple classes (#185, #304)
* Support environment variables in default template processor (#347)
* Update version command to include Bash & Git versions (#377)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
3.2.1
Done
Development

No branches or pull requests

5 participants