Skip to content

Upload fails: Deno validation skipped and git-annex not initialized #32

Closed

Description

@neuromechanist

Problem

Two critical issues discovered during upload testing:

  1. Deno validation skipped: When Deno is not installed, upload shows a warning but continues. This allows invalid BIDS datasets to be uploaded.

    • Expected: Fail with error and installation instructions
    • Actual: Warning and continues upload
  2. git-annex not initialized: Upload fails with error "git-annex: First run: git-annex init"

    • The createDataladDataset function runs datalad create but doesn't explicitly run git annex init
    • When creating a dataset on an existing directory with files, git-annex may not be fully initialized
    • This causes configureLargefiles to fail

Reproduction

# Remove Deno
brew uninstall deno

# Try upload
nemar dataset upload /path/to/bids/dataset

Output:

⚠ Skipping validation (Deno not installed)
Install Deno to enable BIDS validation: https://deno.com

...

⚠ Could not configure largefiles pattern
  git-annex: First run: git-annex init
✔ DataLad dataset initialized
✖ Failed to upload some files (1 failed)

Solution

  1. Add Deno check to sandbox prerequisites
  2. Make Deno a hard requirement for upload (error not warning)
  3. Add explicit git annex init step after datalad create in createDataladDataset

Related

  • Sandbox should validate Deno is installed before allowing completion
  • Consider documenting Deno installation in prerequisites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions