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

permissible directory #31

Open
bounceme opened this issue May 12, 2017 · 8 comments
Open

permissible directory #31

bounceme opened this issue May 12, 2017 · 8 comments

Comments

@bounceme
Copy link

from what i can tell no files are editable or even openable. that makes testing harder for indent-scripts / editing plugins by requiring the full path to vim.

@blueyed
Copy link
Member

blueyed commented May 12, 2017

Can you provide more information, e.g. logs?

I am not sure if it is worth supporting something older than 7.3 myself though.

@bounceme
Copy link
Author

is this for #30 ? 7.2 works fine, maybe 7.1 is just too old. the failure was with ncurses i beleive

@blueyed
Copy link
Member

blueyed commented May 13, 2017

Yes, I asked for #30.

What is this issue about exactly?
Files should be editable, if you mount them using a Docker volume.
How do you use vim-testbed?

@bounceme
Copy link
Author

bounceme commented May 13, 2017

FROM testbed/vim:latest
ENV IND master

RUN install_vim -tag v7.2 -name vim72 -build
RUN apk update
RUN apk add diffutils
RUN mkdir -p /home/vim/indent

ADD http://cdn.rawgit.com/pangloss/vim-javascript/${IND}/indent/javascript.vim /home/vim/indent/javascript.vim
ADD http://cdn.rawgit.com/sanctuary-js/sanctuary-def/779fc342b04f5d74778ec628a0b9bb80b204c8e5/index.js /testplugin/test.js



ENTRYPOINT vim-build/bin/vim72 -c "source /rtp.vim" -c "runtime indent/javascript.vim" -c \
           "set nocompatible" -c "syntax on" -c "filetype plugin indent on" /testplugin/test.js

I'm trying different vim's for compatibility issues, on some basic indentation script tests. unfortunately i can't set up automated builds at https://github.com/pangloss/vim-javascript . I'm actually using this interactively at the moment

@blueyed
Copy link
Member

blueyed commented May 13, 2017

And what is the problem?
That some dirs are not writable?
Does the build already fail?
btw: I am working on improving this in general in #33

@bounceme
Copy link
Author

yea, run_vim.sh removes all permissions. nothing is editable or openable.

@bounceme
Copy link
Author

i guess i could just use mkdir -m to as a fix for my use case

@tinmarino
Copy link

tinmarino commented Dec 14, 2019

Did you find the source of your problem ? I get

$ docker run -it --rm -e USER=root  -v $PWD/../:/testplugin -v $PWD/../test:/home vimwiki vim_7.4.1099 -u test/vimrc -i NONE

5df81d6da6ad:/testplugin$ cd /
5df81d6da6ad:/$ ls -l 
total 80
drwxr-xr-x    1 root     root          4096 Oct 24 15:35 bin
drwxr-xr-x    5 root     root           360 Dec 14 21:27 dev
drwxr-xr-x    1 root     root          4096 Dec 14 21:27 etc
drwxr-xr-x    5 1000     1000          4096 Dec 14 21:13 home
drwxr-xr-x    1 root     root          4096 Oct 24 15:44 lib
drwxr-xr-x    5 root     root          4096 Aug 20 10:30 media
drwxr-xr-x    2 root     root          4096 Aug 20 10:30 mnt
drwxr-xr-x    2 root     root          4096 Aug 20 10:30 opt
drwxr-xr-x    1 vimtest  vimtest       4096 Sep 18 22:24 plugins
dr-xr-xr-x  314 root     root             0 Dec 14 21:27 proc
drwx------    1 root     root          4096 Oct 24 15:44 root
-rw-r--r--    1 root     root           219 Sep 18 22:24 rtp.vim
drwxr-xr-x    2 root     root          4096 Aug 20 10:30 run
drwxr-xr-x    1 root     root          4096 Sep 18 22:24 sbin
drwxr-xr-x    2 root     root          4096 Aug 20 10:30 srv
dr-xr-xr-x   13 root     root             0 Dec 14 21:27 sys
drwxr-xr-x    9 1000     1000          4096 Dec 11 20:06 testplugin
drwxrwxrwt    1 root     root          4096 Oct 24 15:44 tmp
drwxr-xr-x    1 root     root          4096 Oct 24 15:44 usr
drwxr-xr-x   10 root     root          4096 Oct 24 15:36 vader
drwxr-xr-x    1 root     root          4096 Oct 24 15:36 var
drwxr-xr-x    1 root     root          4096 Oct 24 15:44 vim
drwxr-xr-x    1 root     root          4096 Oct 24 15:44 vim-build

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

No branches or pull requests

3 participants