dapphub / dapphub/dapple-quicktest

dapp init doesn't play nicely with dapple-quicktest

Open
#3 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Dappfile appears screwed up

```
$ dapp init

[. . . write some code . . .]

$ dapple-quicktest
MIGRAE: 0.8.37 - add possible missing fields to Dappfile - authors, licence - Apache-2.0, ...
MIGRAE: 0.8.37 - add ./ prefix to layouts in case its missing
/usr/local/lib/node_modules/dapple/node_modules/dapple-core/local_migration.js:29
dappfile.layout = _.mapValues(dappfile.layout, (path, name) => {
^

TypeError: Cannot create property 'layout' on string 'name test description version 0.0.1
author amilenius license Apache-2.0'
at migrate (/usr/local/lib/node_modules/dapple/node_modules/dapple-core/local_migration.js:29:21)
at migrate (/usr/local/lib/node_modules/dapple/node_modules/dapple-core/local_migration.js:15:7)
at module.exports (/usr/local/lib/node_modules/dapple/node_modules/dapple-core/local_migration.js:28:3)
at async.waterfall (/usr/local/lib/node_modules/dapple/node_modules/dapple-core/state.js:56:34)
at /usr/local/lib/node_modules/dapple/node_modules/async/dist/async.js:356:16
at nextTask (/usr/local/lib/node_modules/dapple/node_modules/async/dist/async.js:5057:29)
at /usr/local/lib/node_modules/dapple/node_modules/async/dist/async.js:5064:13
at apply (/usr/local/lib/node_modules/dapple/node_modules/async/dist/async.js:21:25)
at /usr/local/lib/node_modules/dapple/node_modules/async/dist/async.js:56:12
at /usr/local/lib/node_modules/dapple/node_modules/async/dist/async.js:840:16
dapple-quicktest: Error: Command failed: dapple build --test
```

`dapp init` might not be outputing well formatted yaml?

```
$ cat Dappfile
name test
description
version 0.0.1

author amilenius
license Apache-2.0
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with `dapp init` followed by `dapple-quicktest`, then inspect the generated `Dappfile` and the reported `local_migration.js` stack trace. Compare the generated fields and formatting with what `dapple-quicktest` expects; done means a newly initialized Dappfile is accepted and `dapple-quicktest` completes without the migration error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.