Skip to content

straight-x-pinned-packages does not do anything to straight-use-package #1271

@zardoz03

Description

@zardoz03

What's wrong

I intend to clone a repo using straight-x-pinned-packages to specify the git commit it should clone from.
Currently it only clones HEAD. I had to manually git checkout v4.4.2 on magit to build the package at all.

Directions to reproduce

  1. set straight-x-pinned-packages
(add-to-list 'straight-x-pinned-packages
             '("magit" . "b828afbb4b45641998fb6483a08effb1efb214e1"))
  1. remove magit from repos and build
rm -rf repos/magit*
rm -rf build/magit*
  1. have
(let () 
  (setf straight-current-profile 'pinned)
  (straight-use-package 'magit)
  ...)

somewhere in your config
4. build fails
5. notice the clone is not b828afbb, and is instead in fact HEAD.

Version information

  • Emacs version: 30.1
  • Operating system: x86_64-alpine-linux-musl

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions