question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

snap/snapcraft.yaml is malformed

See original GitHub issue
$ curl -s https://raw.githubusercontent.com/Manisso/fsociety/master/snap/snapcraft.yaml | \
  python3 -c 'import sys, yaml; yaml.safe_load(sys.stdin.read())'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 94, in safe_load
    return load(stream, SafeLoader)
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 72, in load
    return loader.get_single_data()
  File "/usr/lib/python3/dist-packages/yaml/constructor.py", line 35, in get_single_data
    node = self.get_single_node()
  File "/usr/lib/python3/dist-packages/yaml/composer.py", line 39, in get_single_node
    if not self.check_event(StreamEndEvent):
  File "/usr/lib/python3/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/lib/python3/dist-packages/yaml/parser.py", line 174, in parse_document_start
    self.peek_token().start_mark)
yaml.parser.ParserError: expected '<document start>', but found '<scalar>'
  in "<unicode string>", line 7, column 1:
    A Penetration Testing Framework, ...
    ^

This causes build requests to fail on build.snapcraft.io. It looks like you just need to fix up the weirdly-inverted indentation.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Dec 5, 2019

reminder to fix

0reactions
cjwatsoncommented, Feb 7, 2020

@CRO-THEHACKER Huh? There’s a fix in #67. I don’t understand what’s so hard about this; the YAML is invalid and fixing it isn’t that complicated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues connecting one specific repository to the Snapcraft ...
I currently have issues with connecting one specific GitHub repository to the Snapcraft.io build system. All other repositories are working ...
Read more >
What is wrong with this snapcraft.yaml file?
Issues while validating snapcraft.yaml: The 'parts' property does not match the required schema: '7z' is not a valid part name.
Read more >
Bug #1853682 “an error occurred in snapcraft”
It looks like this has been addressed in newer versions of snapcraft, but would like to make sure the YAML isn't malformed. Thank...
Read more >
Snapcraft: debian/changelog - Fossies
_get_provider_content_dirs() 82 * spread tests: update unicode-metadata expect_snap.yaml's ordering 83 * snap-packaging: do not write command-chain wrapper ...
Read more >
How do I target $SNAP_DATA from snapcraft.yaml
Snapcraft is a build-time tool. The install scriptlet you're using there runs when the snap is being created, not when the snap is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found