modular icon indicating copy to clipboard operation
modular copied to clipboard

[BUG] `mojo package .` creates `..mojopkg` instead of `$BASENAME.mojopkg`

Open ucirello opened this issue 8 months ago • 0 comments

Bug description

Actual behavior

mojo package . creates a dot-name file.

Expected behavior

I expected that mojo package . to behave the same as mojo package $PWD

Steps to reproduce

$ mojo package .
$ ls *.mojopkg
ls: *.mojopkg: No such file or directory
$ ls *mojopkg
ls: *mojopkg: No such file or directory
$ ls .*mojopkg
..mojopkg

vs

$ mojo package $PWD
$ ls -lah *mojopkg
nanoid.mojopkg

System information

  • Provide the system information by running magic info.
[1m     Magic version[0m: [32m0.7.2[0m
[36m[1mSystem
------------[0m
[1m       Pixi version[0m: [32m0.41.4[0m
[1m           Platform[0m: osx-arm64
[1m   Virtual packages[0m: __unix=0=0
                   : __osx=15.4.1=0
                   : __archspec=1=m2
[1m          Cache dir[0m: /Users/user/Library/Caches/rattler/cache
[1m       Auth storage[0m: /Users/user/.rattler/credentials.json
[1m   Config locations[0m: No config files found

[36m[1mGlobal
------------[0m
[1m            Bin dir[0m: /Users/user/.modular/bin
[1m    Environment dir[0m: /Users/user/.modular/envs
[1m       Manifest dir[0m: /Users/user/.modular/manifests/pixi-global.toml

[36m[1mProject
------------[0m
[1m               Name[0m: nanoid
[1m            Version[0m: 0.1.0
[1m      Manifest file[0m: /Users/user/go/src/github.com/cirello-py/sink/nanoid/mojoproject.toml
[1m       Last updated[0m: 18-05-2025 20:49:34

[36m[1mEnvironments
------------[0m
[1m        Environment[0m: [35m[1mdefault[0m
[1m           Features[0m: [36mdefault[0m
[1m           Channels[0m: https://conda.modular.com/max-nightly, https://conda.modular.com/max, https://repo.prefix.dev/modular-community, conda-forge
[1m   Dependency count[0m: 1
[1m       Dependencies[0m: max
[1m   Target platforms[0m: osx-arm64
  • Provide version information for MAX (includes Mojo) by pasting the output of magic list max.
[1mPackage[0m     [1mVersion[0m               [1mBuild[0m    [1mSize[0m       [1mKind[0m   [1mSource[0m
[32m[1mmax[0m         25.4.0.dev2025051805  release  10.6 KiB   conda  max
max-core    25.4.0.dev2025051805  release  177.3 MiB  conda  max-core
max-python  25.4.0.dev2025051805  release  10 MiB     conda  max-python

ucirello avatar May 19 '25 05:05 ucirello