Skip to content

[BUG] Handle local cargo installs better #169

@jayvdb

Description

@jayvdb

Describe the bug
Installing a path of . shouldnt be registered as '.'.

To Reproduce

cargo install --path .
  Installing emplace v1.3.1-alpha.0 (/Users/john.vandenberg/osx/emplace)
    Updating crates.io index
   Compiling libc v0.2.89
   Compiling proc-macro2 v1.0.24
....
    Replaced package `emplace v1.3.0` with `emplace v1.3.1-alpha.0 (/Users/john.vandenberg/osx/emplace)` (executable `emplace`)
Opening Emplace repo: "/Users/john.vandenberg/Library/Application Support/emplace".
Mirror this command?
- . (Cargo Rust)
[y/n]

Expected behavior
Dont try to register '.' as an installable, or expand . to be a complete path, and even better would be to determine the git repo and hash to make it reproducible.

Desktop (please complete the following information):

  • OS: mac
  • Shell: zsh

Machine information

Software version

emplace 1.3.1-alpha.0

Operating system

Darwin 20.3.0

Environment variables

SHELL=/usr/local/bin/zsh
EMPLACE_CONFIG='/Users/john.vandenberg/Library/Application Support/emplace.toml'

Git version

> git --version
git version 2.31.0

Compile time information

  • Profile: release
  • Target triple: x86_64-apple-darwin
  • Family: unix
  • OS: macos
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2,sse3,ssse3
  • Host: x86_64-apple-darwin

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions