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

Support --allow-path in the CLI #2133

Merged
merged 1 commit into from Apr 20, 2017
Merged

Support --allow-path in the CLI #2133

merged 1 commit into from Apr 20, 2017

Conversation

axic
Copy link
Member

@axic axic commented Apr 19, 2017

No description provided.

Copy link
Contributor

@chriseth chriseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps call it --allow-paths and please add an explanation in the documentation.

(g_argMetadataLiteral.c_str(), "Store referenced sources are literal data in the metadata output.")
(
g_argAllowPath.c_str(),
po::value<string>()->value_name("path"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path(s)?

@axic axic force-pushed the allow-path branch 2 times, most recently from 226aadd to ef9e809 Compare April 19, 2017 18:46
@axic
Copy link
Member Author

axic commented Apr 19, 2017

Changed. Please review the docs, don't know if the sentence is true there :)

Changelog.md Outdated
@@ -2,6 +2,8 @@

Features:
* Support ``interface`` contracts.
* Commandline interface: Support ``--allow-paths`` to define trusted import paths. Note: the
path(s) of the supplied contract(s) is always trusted.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be supplied source file(s).

@@ -29,6 +29,8 @@ files reside, so things like ``import "/etc/passwd";`` only work if you add ``=/

If there are multiple matches due to remappings, the one with the longest common prefix is selected.

Important to note is that paths of included sources files and paths defined by remappings are allowed to include, but everything else is rejected. Additional paths can be added via the ``--allow-paths /sample/path,/another/sample/path`` switch.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paths of source files specified on the commandline and paths defined by remappings...

It is probably better to put that in line 16.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworded, still not sure. Where exactly at line 16 should it go?

@axic axic force-pushed the allow-path branch 2 times, most recently from 09899ca to 8bf8420 Compare April 20, 2017 14:38
@chriseth chriseth merged commit 6468955 into develop Apr 20, 2017
@axic axic deleted the allow-path branch April 20, 2017 22:41
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

Successfully merging this pull request may close these issues.

None yet

2 participants