vgratian / smog

manage local git repositories in style of package manager
Other
2 stars 0 forks source link

wrong username/string #2

Open norayr opened 2 years ago

norayr commented 2 years ago

with the latest version of smog, i believe:

bin/smog add https://git.sr.ht/~julienxx/castor

package:   castor
url:       https://git.sr.ht/~julienxx/castor
path:      sr.ht/~julienxx/castor

proceed? [y/N]: y

checking available tags.. found 27
use tag [0.9.0]? [y/N]: y

selected tag [0.9.0]
mkdir: created directory '/home/inky/local/pkg/sr.ht'
mkdir: created directory '/home/inky/local/pkg/sr.ht/~julienxx'
mkdir: created directory '/home/inky/local/pkg/sr.ht/~julienxx/castor'
Cloning into '/home/inky/local/pkg/sr.ht/~julienxx/castor'...
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 47 (delta 5), reused 32 (delta 0), pack-reused 0
Receiving objects: 100% (47/47), 95.86 KiB | 212.00 KiB/s, done.
Resolving deltas: 100% (5/5), done.
Switched to a new branch 'mastermind'
created metadata '/home/inky/local/pkg/github.com/vgratian/smog/mdd/castor'
package 'castor' created

the problem is in this line:

created metadata '/home/inky/local/pkg/github.com/vgratian/smog/mdd/castor'

i guess it should take the current username.

vgratian commented 2 years ago

Hi, it seems like this is not a problem. The metadata filename will always match the repo name (castor in this case is correct).

As for the metadata filepath, this is controlled by the $MDD variable in config (see README).

It might be confusing why this filepath is in ......./github.com/vgratian/smog/mdd/, but that's because smog is maintaining itself as a package of itself and that's the location where smog has cloned itself. Let me know if that clears it up a little bit.

vgratian commented 2 years ago

p.s. sorry, I didn't see the issue earlier