Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"include" and "exclude" in moon.mod.json does not override gitignore #593

Closed
1 task done
tonyfettes opened this issue Feb 10, 2025 · 0 comments
Closed
1 task done

Comments

@tonyfettes
Copy link
Contributor

Bug Report

Environment

OS

Operating System: macOS

MoonBit CLI Tools Version

moon 0.1.20250209 (6a14786 2025-02-09) ~/Library/MoonBit/bin/moon
moonc v0.1.20250209+c5d485290 ~/Library/MoonBit/bin/moonc
moonrun 0.1.20250209 (6a14786 2025-02-09) ~/Library/MoonBit/bin/moonrun

Steps to Reproduce

  1. Create a new MoonBit project.

    moon new .
  2. Create a ignored directory, for example:

    mkdir lib
    touch lib/libxxx.a
    cat << EOF >> .gitignore
    /lib
    EOF
  3. Package moon module.

    $ moon package list
    Running moon check ...
    Finished. moon: ran 3 tasks, now up to date
    Check passed
    LICENSE
    README.md
    moon.mod.json
    src
    src/lib
    src/lib/hello.mbt
    src/lib/hello_test.mbt
    src/lib/moon.pkg.json
    src/main
    src/main/main.mbt
    src/main/moon.pkg.json
    Package to ./target/publish/username-hello-0.1.0.zip

Expected Behavior

It include the newly created lib directory and lib/libxxx.a

Actual Behavior

The lib directory and lib/libxxx.a file is missing.

Checklist

  • (Optional) My case is minimal enough to be reproducible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant