-
Notifications
You must be signed in to change notification settings - Fork 360
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
access_rules cannot configure repositories by 'file:///C:*/*/rule.json' on windows #332
Comments
access_rules:
|
Ahhh...windows :D Could you try it with:
Thank you! |
I checked on a windows machine and I believe that this should work: |
I did try those all ,but it still not really work.that shows that |
only |
Do you know Golang? I don't have access to a Windows machine often so it's hard for me to figure out what's wrong. We'd happily accept a fix! |
It still can work with configuration |
Ok, thanks for letting me know and good luck :) |
Hello,brother.I do solve this issue.It is caused by a piece of unnecessary code in line 147-154 of the file
|
Would you mind setting up a PR? |
it is my pleasure,I need your authentication |
I did not use this before ,I git clone successful and add all files,but cannot push it on master .it request a username and password for "https://gist.github.com" , here is my email :"[email protected]" |
You need to fork this repository and push to the forked repository and then create a PR from the forked repository to here. The link I shared should explain this. I can not give you write rights on this repository as it is against company policy. |
sorry,I tried it many times,but failed. It just change a little and the code I had give to you , maybe you can fix this by yourself . |
Sorry for my late reply, I will check out your patch code when I have access to a windows machine and will try to fix it. |
this issue is happened on windows 10 system,it may cased by incorrect string parse with url.Parse() method .that split string with ' : ',and make it wrong . The error message is as follows:
time="2020-01-08T15:43:39+08:00" level=error msg="Unable to update access rules from given location, changes will be ignored. Check the configuration or restart the service if the issue persists." error="parse file://\F:\aweso
meProject\bin\resource-server.json: invalid port ":\\awesomeProject\\bin\\resource-server.json" after host" file="file:///F:/awesomeProject/bin/resource-server.json"
The text was updated successfully, but these errors were encountered: