nim-lang / atlas

The Atlas Package cloner. It manages an isolated workspace that contains projects and dependencies.
MIT License
98 stars 14 forks source link

Installing Atlas #head with Nimble is broken #79

Closed elcritch closed 9 months ago

elcritch commented 1 year ago
nimble install https://github.com/nim-lang/atlas@\#head
/tmp/nimble_1894/githubcom_nimlangatlas_#head/src/lockfiles.nim(11, 12) Warning: imported and not used: 'sha1' [UnusedImport]
  Success:  atlas installed successfully.
       Tip: 7 messages have been suppressed, use --verbose to show them.
packageparser.nim(395)   readPackageInfo
    Error:  Could not read package info file in /home/runner/.nimble/pkgs2/atlas-0.6.3-bcaac15af2ecbfb9b183dd18cc643840f9df89a2/atlas.nimble;
        ...   Reading as ini file failed with: 
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with: 
        ...     /home/runner/.nimble/pkgs2/atlas-0.6.3-bcaac15af2ecbfb9b183dd18cc643840f9df89a2/atlas.nimble(2, 12) Error: cannot open file: src/pkgversion

Locally I get:

    Error:  The package inside "/Users/jaremycreechley/.nimble/pkgs2/atlas-0.6.3-bcaac15af2ecbfb9b183dd18cc643840f9df89a2" is invalid.
  Details:  Could not read package info file in /Users/jaremycreechley/.nimble/pkgs2/atlas-0.6.3-bcaac15af2ecbfb9b183dd18cc643840f9df89a2/atlas.nimble;
        ...   Reading as ini file failed with: 
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with: 
        ...     /Users/jaremycreechley/.nimble/pkgs2/atlas-0.6.3-bcaac15af2ecbfb9b183dd18cc643840f9df89a2/atlas.nimble(2, 12) Error: cannot open file: src/pkgversio
elcritch commented 1 year ago

@ZoomRmc I think this was from your PR to move the version into another file?

Personally I think Atlas should dog-food itself!

There's already atlas tag which should also bump the version in the nimble file as well. Alternatively a atlas release which does a tag then bumps the Nimble version.