Skip to content

Conversation

townsend2010
Copy link
Contributor

Fixes #774

@townsend2010
Copy link
Contributor Author

The meat of this will be implemented in the Windows and Mac platforms.

@townsend2010 townsend2010 force-pushed the implement-backend-separation branch from a477e60 to 23adb9a Compare May 22, 2019 20:38
@codecov
Copy link

codecov bot commented May 22, 2019

Codecov Report

Merging #800 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #800      +/-   ##
=========================================
+ Coverage   68.69%   68.7%   +<.01%     
=========================================
  Files         177     177              
  Lines        6273    6275       +2     
=========================================
+ Hits         4309    4311       +2     
  Misses       1964    1964
Impacted Files Coverage Δ
src/platform/platform_linux.cpp 39.28% <100%> (+4.67%) ⬆️
src/daemon/daemon.cpp 28.38% <100%> (ø) ⬆️
src/daemon/default_vm_image_vault.cpp 74.92% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b998b8...013434f. Read the comment docs.

@Saviq
Copy link
Collaborator

Saviq commented May 23, 2019

Doesn't this complicate things a bit too much? Couldn't the platform+backend just return a string for the daemon to do with as it pleases?

@townsend2010
Copy link
Contributor Author

@Saviq,

I thought about the approach you suggest, and I thought that approach is at least as complicated as this approach. However, thinking about it some more, it might be better to implement this in each backend's factory. I'll look into that.

@townsend2010 townsend2010 force-pushed the implement-backend-separation branch from 23adb9a to e673fa3 Compare May 23, 2019 13:49
@townsend2010 townsend2010 changed the title backends: Add ability to specify different folders depending on backend backends: Add functionality for backend to determine its data/cache dirs May 23, 2019
@townsend2010
Copy link
Contributor Author

@Saviq,

I updated this to have the backend's factory be the keeper of the data/cache directories.

@townsend2010 townsend2010 force-pushed the implement-backend-separation branch from e673fa3 to 013434f Compare May 23, 2019 16:42
@townsend2010 townsend2010 changed the title backends: Add functionality for backend to determine its data/cache dirs daemon/backends: Allow for backend to determine its data/cache dirs May 23, 2019
@townsend2010 townsend2010 changed the title daemon/backends: Allow for backend to determine its data/cache dirs backends/daemon: Allow for backend to determine its data/cache dirs May 23, 2019
@townsend2010
Copy link
Contributor Author

@Saviq,

Ok, updated again:)

@Saviq
Copy link
Collaborator

Saviq commented May 24, 2019

bors r+

bors bot added a commit that referenced this pull request May 24, 2019
800: backends/daemon: Allow for backend to determine its data/cache dirs r=Saviq a=townsend2010

Fixes #774

Co-authored-by: Chris Townsend <[email protected]>
@Saviq Saviq merged commit 013434f into master May 24, 2019
@bors bors bot deleted the implement-backend-separation branch May 24, 2019 13:41
@bors
Copy link
Contributor

bors bot commented May 24, 2019

Build failed

Saviq pushed a commit that referenced this pull request May 28, 2019
800: backends/daemon: Allow for backend to determine its data/cache dirs r=Saviq a=townsend2010

Fixes #774

Co-authored-by: Chris Townsend <[email protected]>
Saviq pushed a commit that referenced this pull request May 28, 2019
800: backends/daemon: Allow for backend to determine its data/cache dirs r=Saviq a=townsend2010

Fixes #774

Co-authored-by: Chris Townsend <[email protected]>
Saviq pushed a commit that referenced this pull request May 28, 2019
800: backends/daemon: Allow for backend to determine its data/cache dirs r=Saviq a=townsend2010

Fixes #774

Co-authored-by: Chris Townsend <[email protected]>
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.

Separate data for different backends
2 participants