Closed Bug 597496 Opened 14 years ago Closed 13 years ago

cfx treats files in packages/ as package directories

Categories

(Add-on SDK Graveyard :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: myk, Assigned: warner)

Details

Attachments

(1 file, 1 obsolete file)

cfx treats files in the packages/ directory as package directories, then falls over because it can't find a package.json file inside them.  But there are good reasons to have files in that directory.  In particular, to configure projects and other settings for text editors and IDEs (i.e. SCiTE.properties and project.komodoedit files).  So cfx should ignore those files.

Atul: you know the most about the way cfx walks the directory structure; is this one of those bugs it would be easy for you to knock off with a small, well-contained patch?
Attached patch patch.diff (obsolete) — Splinter Review
This works on my install, though not sure if it is the best way to fix.
Attached patch patch.diffSplinter Review
Actually thinking about it more, it is probably better to check that the target is a dir rather than not a file
Attachment #476341 - Attachment is obsolete: true
Comment on attachment 476355 [details] [diff] [review]
patch.diff

Awesome, thanks for the patch David!  Atul: can you review?
Attachment #476355 - Flags: review?(avarma)
Comment on attachment 476355 [details] [diff] [review]
patch.diff

Looks great! In the future, it'd be nice if you could wrap the the line to around 78 characters wide, but it's not that big a deal. Thanks for the patch!
Attachment #476355 - Flags: review?(avarma) → review+
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product.

To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
Keywords: checkin-needed
Assignee: nobody → warner-bugzilla
Priority: -- → P1
Target Milestone: --- → 1.0
an equivalent of this patch was present in 1.0b5 .. not sure from what, but it means this can be closed.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Removing checkin-needed due to comment 6.
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: